Struct opencv::boxed_ref::BoxedRefMut
source · #[repr(transparent)]pub struct BoxedRefMut<'r, T: Boxed> {
pub(crate) reference: T,
referenced_object: PhantomData<&'r mut T>,
}Expand description
Mutable version of BoxedRef, implements the traits that take &mut self.
Fields§
§reference: T§referenced_object: PhantomData<&'r mut T>Implementations§
source§impl<T: Boxed + Clone> BoxedRefMut<'_, T>
impl<T: Boxed + Clone> BoxedRefMut<'_, T>
sourcepub fn clone_pointee(&self) -> T
pub fn clone_pointee(&self) -> T
Clones the pointee of this BoxedRef
Trait Implementations§
source§impl AbsLayerTrait for BoxedRefMut<'_, AbsLayer>
impl AbsLayerTrait for BoxedRefMut<'_, AbsLayer>
fn as_raw_mut_AbsLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl AbsLayerTraitConst for BoxedRefMut<'_, AbsLayer>
impl AbsLayerTraitConst for BoxedRefMut<'_, AbsLayer>
fn as_raw_AbsLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl AccumLayerTrait for BoxedRefMut<'_, AccumLayer>
impl AccumLayerTrait for BoxedRefMut<'_, AccumLayer>
fn as_raw_mut_AccumLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl AccumLayerTraitConst for BoxedRefMut<'_, AccumLayer>
impl AccumLayerTraitConst for BoxedRefMut<'_, AccumLayer>
fn as_raw_AccumLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ActivationLayerInt8Trait for BoxedRefMut<'_, ActivationLayerInt8>
impl ActivationLayerInt8Trait for BoxedRefMut<'_, ActivationLayerInt8>
fn as_raw_mut_ActivationLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerInt8TraitConst for BoxedRefMut<'_, ActivationLayerInt8>
impl ActivationLayerInt8TraitConst for BoxedRefMut<'_, ActivationLayerInt8>
fn as_raw_ActivationLayerInt8( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ActivationLayerTrait for BoxedRefMut<'_, AbsLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, AbsLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, ActivationLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, ActivationLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, ActivationLayerInt8>
impl ActivationLayerTrait for BoxedRefMut<'_, ActivationLayerInt8>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, BNLLLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, BNLLLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, BatchNormLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, BatchNormLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>
impl ActivationLayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>
impl ActivationLayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, ELULayer>
impl ActivationLayerTrait for BoxedRefMut<'_, ELULayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, ExpLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, ExpLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, MishLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, MishLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, PowerLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, PowerLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, ReLU6Layer>
impl ActivationLayerTrait for BoxedRefMut<'_, ReLU6Layer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, ReLULayer>
impl ActivationLayerTrait for BoxedRefMut<'_, ReLULayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, SigmoidLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, SigmoidLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, SwishLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, SwishLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTrait for BoxedRefMut<'_, TanHLayer>
impl ActivationLayerTrait for BoxedRefMut<'_, TanHLayer>
fn as_raw_mut_ActivationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, AbsLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, AbsLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, ActivationLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, ActivationLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, ActivationLayerInt8>
impl ActivationLayerTraitConst for BoxedRefMut<'_, ActivationLayerInt8>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, BNLLLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, BNLLLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, BatchNormLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, BatchNormLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
impl ActivationLayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, ELULayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, ELULayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, ExpLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, ExpLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, MishLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, MishLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, PowerLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, PowerLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, ReLU6Layer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, ReLU6Layer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, ReLULayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, ReLULayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, SigmoidLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, SigmoidLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, SwishLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, SwishLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl ActivationLayerTraitConst for BoxedRefMut<'_, TanHLayer>
impl ActivationLayerTraitConst for BoxedRefMut<'_, TanHLayer>
fn as_raw_ActivationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32, ) -> Result<()>
source§impl AlgorithmTrait for BoxedRefMut<'_, AbsLayer>
impl AlgorithmTrait for BoxedRefMut<'_, AbsLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, AccumLayer>
impl AlgorithmTrait for BoxedRefMut<'_, AccumLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ActivationLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ActivationLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ActivationLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, ActivationLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, Algorithm>
impl AlgorithmTrait for BoxedRefMut<'_, Algorithm>
source§impl AlgorithmTrait for BoxedRefMut<'_, BNLLLayer>
impl AlgorithmTrait for BoxedRefMut<'_, BNLLLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, BaseConvolutionLayer>
impl AlgorithmTrait for BoxedRefMut<'_, BaseConvolutionLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, BatchNormLayer>
impl AlgorithmTrait for BoxedRefMut<'_, BatchNormLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, BatchNormLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, BatchNormLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, BlankLayer>
impl AlgorithmTrait for BoxedRefMut<'_, BlankLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, CLAHE>
impl AlgorithmTrait for BoxedRefMut<'_, CLAHE>
source§impl AlgorithmTrait for BoxedRefMut<'_, ChannelsPReLULayer>
impl AlgorithmTrait for BoxedRefMut<'_, ChannelsPReLULayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ConcatLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ConcatLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ConjGradSolver>
impl AlgorithmTrait for BoxedRefMut<'_, ConjGradSolver>
source§impl AlgorithmTrait for BoxedRefMut<'_, ConstLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ConstLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ConvolutionLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ConvolutionLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ConvolutionLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, ConvolutionLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, CorrelationLayer>
impl AlgorithmTrait for BoxedRefMut<'_, CorrelationLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, CropAndResizeLayer>
impl AlgorithmTrait for BoxedRefMut<'_, CropAndResizeLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, CropLayer>
impl AlgorithmTrait for BoxedRefMut<'_, CropLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, CumSumLayer>
impl AlgorithmTrait for BoxedRefMut<'_, CumSumLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, DataAugmentationLayer>
impl AlgorithmTrait for BoxedRefMut<'_, DataAugmentationLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, DeconvolutionLayer>
impl AlgorithmTrait for BoxedRefMut<'_, DeconvolutionLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, DequantizeLayer>
impl AlgorithmTrait for BoxedRefMut<'_, DequantizeLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, DetectionOutputLayer>
impl AlgorithmTrait for BoxedRefMut<'_, DetectionOutputLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, DownhillSolver>
impl AlgorithmTrait for BoxedRefMut<'_, DownhillSolver>
source§impl AlgorithmTrait for BoxedRefMut<'_, ELULayer>
impl AlgorithmTrait for BoxedRefMut<'_, ELULayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, EltwiseLayer>
impl AlgorithmTrait for BoxedRefMut<'_, EltwiseLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, EltwiseLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, EltwiseLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, ExpLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ExpLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, FlattenLayer>
impl AlgorithmTrait for BoxedRefMut<'_, FlattenLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, FlowWarpLayer>
impl AlgorithmTrait for BoxedRefMut<'_, FlowWarpLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, GRULayer>
impl AlgorithmTrait for BoxedRefMut<'_, GRULayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHough>
impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHough>
source§impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHoughBallard>
impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHoughBallard>
source§impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHoughGuil>
impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHoughGuil>
source§impl AlgorithmTrait for BoxedRefMut<'_, InnerProductLayer>
impl AlgorithmTrait for BoxedRefMut<'_, InnerProductLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, InnerProductLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, InnerProductLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, InterpLayer>
impl AlgorithmTrait for BoxedRefMut<'_, InterpLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, LRNLayer>
impl AlgorithmTrait for BoxedRefMut<'_, LRNLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, LSTMLayer>
impl AlgorithmTrait for BoxedRefMut<'_, LSTMLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, Layer>
impl AlgorithmTrait for BoxedRefMut<'_, Layer>
source§impl AlgorithmTrait for BoxedRefMut<'_, LineSegmentDetector>
impl AlgorithmTrait for BoxedRefMut<'_, LineSegmentDetector>
source§impl AlgorithmTrait for BoxedRefMut<'_, MVNLayer>
impl AlgorithmTrait for BoxedRefMut<'_, MVNLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, MaxUnpoolLayer>
impl AlgorithmTrait for BoxedRefMut<'_, MaxUnpoolLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, MinProblemSolver>
impl AlgorithmTrait for BoxedRefMut<'_, MinProblemSolver>
source§impl AlgorithmTrait for BoxedRefMut<'_, MishLayer>
impl AlgorithmTrait for BoxedRefMut<'_, MishLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, NormalizeBBoxLayer>
impl AlgorithmTrait for BoxedRefMut<'_, NormalizeBBoxLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, PaddingLayer>
impl AlgorithmTrait for BoxedRefMut<'_, PaddingLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, PermuteLayer>
impl AlgorithmTrait for BoxedRefMut<'_, PermuteLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, PoolingLayer>
impl AlgorithmTrait for BoxedRefMut<'_, PoolingLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, PoolingLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, PoolingLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, PowerLayer>
impl AlgorithmTrait for BoxedRefMut<'_, PowerLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, PriorBoxLayer>
impl AlgorithmTrait for BoxedRefMut<'_, PriorBoxLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ProposalLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ProposalLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, QuantizeLayer>
impl AlgorithmTrait for BoxedRefMut<'_, QuantizeLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, RNNLayer>
impl AlgorithmTrait for BoxedRefMut<'_, RNNLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ReLU6Layer>
impl AlgorithmTrait for BoxedRefMut<'_, ReLU6Layer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ReLULayer>
impl AlgorithmTrait for BoxedRefMut<'_, ReLULayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, RegionLayer>
impl AlgorithmTrait for BoxedRefMut<'_, RegionLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ReorgLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ReorgLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, RequantizeLayer>
impl AlgorithmTrait for BoxedRefMut<'_, RequantizeLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ReshapeLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ReshapeLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ResizeLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ResizeLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ScaleLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ScaleLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ScaleLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, ScaleLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, ShiftLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ShiftLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, ShiftLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, ShiftLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, ShuffleChannelLayer>
impl AlgorithmTrait for BoxedRefMut<'_, ShuffleChannelLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, SigmoidLayer>
impl AlgorithmTrait for BoxedRefMut<'_, SigmoidLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, SliceLayer>
impl AlgorithmTrait for BoxedRefMut<'_, SliceLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, SoftmaxLayer>
impl AlgorithmTrait for BoxedRefMut<'_, SoftmaxLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, SoftmaxLayerInt8>
impl AlgorithmTrait for BoxedRefMut<'_, SoftmaxLayerInt8>
source§impl AlgorithmTrait for BoxedRefMut<'_, SplitLayer>
impl AlgorithmTrait for BoxedRefMut<'_, SplitLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, SwishLayer>
impl AlgorithmTrait for BoxedRefMut<'_, SwishLayer>
source§impl AlgorithmTrait for BoxedRefMut<'_, TanHLayer>
impl AlgorithmTrait for BoxedRefMut<'_, TanHLayer>
source§impl AlgorithmTraitConst for BoxedRefMut<'_, AbsLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, AbsLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, AccumLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, AccumLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ActivationLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ActivationLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ActivationLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, ActivationLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, Algorithm>
impl AlgorithmTraitConst for BoxedRefMut<'_, Algorithm>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, BNLLLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, BNLLLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, BatchNormLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, BatchNormLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, BlankLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, BlankLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, CLAHE>
impl AlgorithmTraitConst for BoxedRefMut<'_, CLAHE>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ConcatLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ConcatLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ConjGradSolver>
impl AlgorithmTraitConst for BoxedRefMut<'_, ConjGradSolver>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ConstLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ConstLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ConvolutionLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ConvolutionLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, CorrelationLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, CorrelationLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, CropAndResizeLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, CropAndResizeLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, CropLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, CropLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, CumSumLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, CumSumLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, DataAugmentationLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, DataAugmentationLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, DequantizeLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, DequantizeLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, DetectionOutputLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, DetectionOutputLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, DownhillSolver>
impl AlgorithmTraitConst for BoxedRefMut<'_, DownhillSolver>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ELULayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ELULayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, EltwiseLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, EltwiseLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, EltwiseLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, EltwiseLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ExpLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ExpLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, FlattenLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, FlattenLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, FlowWarpLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, FlowWarpLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, GRULayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, GRULayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHough>
impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHough>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>
impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>
impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, InnerProductLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, InnerProductLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, InnerProductLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, InnerProductLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, InterpLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, InterpLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, LRNLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, LRNLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, LSTMLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, LSTMLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, Layer>
impl AlgorithmTraitConst for BoxedRefMut<'_, Layer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, LineSegmentDetector>
impl AlgorithmTraitConst for BoxedRefMut<'_, LineSegmentDetector>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, MVNLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, MVNLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, MinProblemSolver>
impl AlgorithmTraitConst for BoxedRefMut<'_, MinProblemSolver>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, MishLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, MishLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, PaddingLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, PaddingLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, PermuteLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, PermuteLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, PoolingLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, PoolingLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, PoolingLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, PoolingLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, PowerLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, PowerLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, PriorBoxLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, PriorBoxLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ProposalLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ProposalLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, QuantizeLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, QuantizeLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, RNNLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, RNNLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ReLU6Layer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ReLU6Layer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ReLULayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ReLULayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, RegionLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, RegionLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ReorgLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ReorgLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, RequantizeLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, RequantizeLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ReshapeLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ReshapeLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ResizeLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ResizeLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ScaleLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ScaleLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ScaleLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, ScaleLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ShiftLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ShiftLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ShiftLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, ShiftLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, ShuffleChannelLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, ShuffleChannelLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, SigmoidLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, SigmoidLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, SliceLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, SliceLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, SoftmaxLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, SoftmaxLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
impl AlgorithmTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, SplitLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, SplitLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, SwishLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, SwishLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl AlgorithmTraitConst for BoxedRefMut<'_, TanHLayer>
impl AlgorithmTraitConst for BoxedRefMut<'_, TanHLayer>
fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
simplified API for language bindings
Stores algorithm parameters in a file storage Read more
source§fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>
simplified API for language bindings
@overload Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl ArraysTrait for BoxedRefMut<'_, Arrays>
impl ArraysTrait for BoxedRefMut<'_, Arrays>
fn as_raw_mut_Arrays( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_vertex_array(&mut self, vertex: &impl ToInputArray) -> Result<()>
fn set_vertex_array(&mut self, vertex: &impl ToInputArray) -> Result<()>
Sets an array of vertex coordinates. Read more
source§fn reset_vertex_array(&mut self) -> Result<()>
fn reset_vertex_array(&mut self) -> Result<()>
Resets vertex coordinates.
source§fn set_color_array(&mut self, color: &impl ToInputArray) -> Result<()>
fn set_color_array(&mut self, color: &impl ToInputArray) -> Result<()>
Sets an array of vertex colors. Read more
source§fn reset_color_array(&mut self) -> Result<()>
fn reset_color_array(&mut self) -> Result<()>
Resets vertex colors.
source§fn set_normal_array(&mut self, normal: &impl ToInputArray) -> Result<()>
fn set_normal_array(&mut self, normal: &impl ToInputArray) -> Result<()>
Sets an array of vertex normals. Read more
source§fn reset_normal_array(&mut self) -> Result<()>
fn reset_normal_array(&mut self) -> Result<()>
Resets vertex normals.
source§fn set_tex_coord_array(&mut self, tex_coord: &impl ToInputArray) -> Result<()>
fn set_tex_coord_array(&mut self, tex_coord: &impl ToInputArray) -> Result<()>
Sets an array of vertex texture coordinates. Read more
source§fn reset_tex_coord_array(&mut self) -> Result<()>
fn reset_tex_coord_array(&mut self) -> Result<()>
Resets vertex texture coordinates.
source§impl ArraysTraitConst for BoxedRefMut<'_, Arrays>
impl ArraysTraitConst for BoxedRefMut<'_, Arrays>
source§impl AsyncArrayTrait for BoxedRefMut<'_, AsyncArray>
impl AsyncArrayTrait for BoxedRefMut<'_, AsyncArray>
fn as_raw_mut_AsyncArray( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, o: &impl AsyncArrayTraitConst)
fn release(&mut self)
fn set_1(&mut self, o: AsyncArray)
source§impl AsyncArrayTraitConst for BoxedRefMut<'_, AsyncArray>
impl AsyncArrayTraitConst for BoxedRefMut<'_, AsyncArray>
fn as_raw_AsyncArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_with_timeout(
&self,
dst: &mut impl ToOutputArray,
timeout_ns: i64,
) -> Result<bool>
fn get_with_timeout( &self, dst: &mut impl ToOutputArray, timeout_ns: i64, ) -> Result<bool>
Retrieving the result with timeout Read more
fn get_with_timeout_f64( &self, dst: &mut impl ToOutputArray, timeout_ns: f64, ) -> Result<bool>
fn wait_for(&self, timeout_ns: i64) -> Result<bool>
fn wait_for_f64(&self, timeout_ns: f64) -> Result<bool>
fn valid(&self) -> bool
source§impl AsyncPromiseTrait for BoxedRefMut<'_, AsyncPromise>
impl AsyncPromiseTrait for BoxedRefMut<'_, AsyncPromise>
fn as_raw_mut_AsyncPromise( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, o: &impl AsyncPromiseTraitConst)
fn release(&mut self)
source§fn get_array_result(&mut self) -> Result<AsyncArray>
fn get_array_result(&mut self) -> Result<AsyncArray>
Returns associated AsyncArray Read more
source§fn set_value(&mut self, value: &impl ToInputArray) -> Result<()>
fn set_value(&mut self, value: &impl ToInputArray) -> Result<()>
Stores asynchronous result. Read more
source§fn set_exception(&mut self, exception: &impl ExceptionTraitConst) -> Result<()>
fn set_exception(&mut self, exception: &impl ExceptionTraitConst) -> Result<()>
Stores exception. Read more
fn set_1(&mut self, o: AsyncPromise)
source§impl AsyncPromiseTraitConst for BoxedRefMut<'_, AsyncPromise>
impl AsyncPromiseTraitConst for BoxedRefMut<'_, AsyncPromise>
source§impl BNLLLayerTrait for BoxedRefMut<'_, BNLLLayer>
impl BNLLLayerTrait for BoxedRefMut<'_, BNLLLayer>
fn as_raw_mut_BNLLLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl BNLLLayerTraitConst for BoxedRefMut<'_, BNLLLayer>
impl BNLLLayerTraitConst for BoxedRefMut<'_, BNLLLayer>
fn as_raw_BNLLLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl BackendNodeTrait for BoxedRefMut<'_, BackendNode>
impl BackendNodeTrait for BoxedRefMut<'_, BackendNode>
fn as_raw_mut_BackendNode( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_backend_id(&mut self, val: i32)
fn set_backend_id(&mut self, val: i32)
Backend identifier.
source§impl BackendNodeTraitConst for BoxedRefMut<'_, BackendNode>
impl BackendNodeTraitConst for BoxedRefMut<'_, BackendNode>
fn as_raw_BackendNode(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn backend_id(&self) -> i32
fn backend_id(&self) -> i32
Backend identifier.
source§impl BackendWrapperTrait for BoxedRefMut<'_, BackendWrapper>
impl BackendWrapperTrait for BoxedRefMut<'_, BackendWrapper>
fn as_raw_mut_BackendWrapper( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_backend_id(&mut self, val: i32)
fn set_backend_id(&mut self, val: i32)
Backend identifier.
source§fn set_target_id(&mut self, val: i32)
fn set_target_id(&mut self, val: i32)
Target identifier.
source§fn copy_to_host(&mut self) -> Result<()>
fn copy_to_host(&mut self) -> Result<()>
Transfer data to CPU host memory.
source§fn set_host_dirty(&mut self) -> Result<()>
fn set_host_dirty(&mut self) -> Result<()>
Indicate that an actual data is on CPU.
source§impl BackendWrapperTraitConst for BoxedRefMut<'_, BackendWrapper>
impl BackendWrapperTraitConst for BoxedRefMut<'_, BackendWrapper>
source§impl BaseConvolutionLayerTrait for BoxedRefMut<'_, BaseConvolutionLayer>
impl BaseConvolutionLayerTrait for BoxedRefMut<'_, BaseConvolutionLayer>
fn as_raw_mut_BaseConvolutionLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_kernel(&mut self, val: Size)
fn set_stride(&mut self, val: Size)
fn set_pad(&mut self, val: Size)
fn set_dilation(&mut self, val: Size)
fn set_adjust_pad(&mut self, val: Size)
fn set_adjust_pads(&mut self, val: Vector<size_t>)
fn set_kernel_size(&mut self, val: Vector<size_t>)
fn set_strides(&mut self, val: Vector<size_t>)
fn set_dilations(&mut self, val: Vector<size_t>)
fn set_pads_begin(&mut self, val: Vector<size_t>)
fn set_pads_end(&mut self, val: Vector<size_t>)
fn set_pad_mode(&mut self, val: &str)
fn set_num_output(&mut self, val: i32)
source§impl BaseConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayer>
impl BaseConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayer>
fn as_raw_mut_BaseConvolutionLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_kernel(&mut self, val: Size)
fn set_stride(&mut self, val: Size)
fn set_pad(&mut self, val: Size)
fn set_dilation(&mut self, val: Size)
fn set_adjust_pad(&mut self, val: Size)
fn set_adjust_pads(&mut self, val: Vector<size_t>)
fn set_kernel_size(&mut self, val: Vector<size_t>)
fn set_strides(&mut self, val: Vector<size_t>)
fn set_dilations(&mut self, val: Vector<size_t>)
fn set_pads_begin(&mut self, val: Vector<size_t>)
fn set_pads_end(&mut self, val: Vector<size_t>)
fn set_pad_mode(&mut self, val: &str)
fn set_num_output(&mut self, val: i32)
source§impl BaseConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayerInt8>
impl BaseConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayerInt8>
fn as_raw_mut_BaseConvolutionLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_kernel(&mut self, val: Size)
fn set_stride(&mut self, val: Size)
fn set_pad(&mut self, val: Size)
fn set_dilation(&mut self, val: Size)
fn set_adjust_pad(&mut self, val: Size)
fn set_adjust_pads(&mut self, val: Vector<size_t>)
fn set_kernel_size(&mut self, val: Vector<size_t>)
fn set_strides(&mut self, val: Vector<size_t>)
fn set_dilations(&mut self, val: Vector<size_t>)
fn set_pads_begin(&mut self, val: Vector<size_t>)
fn set_pads_end(&mut self, val: Vector<size_t>)
fn set_pad_mode(&mut self, val: &str)
fn set_num_output(&mut self, val: i32)
source§impl BaseConvolutionLayerTrait for BoxedRefMut<'_, DeconvolutionLayer>
impl BaseConvolutionLayerTrait for BoxedRefMut<'_, DeconvolutionLayer>
fn as_raw_mut_BaseConvolutionLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_kernel(&mut self, val: Size)
fn set_stride(&mut self, val: Size)
fn set_pad(&mut self, val: Size)
fn set_dilation(&mut self, val: Size)
fn set_adjust_pad(&mut self, val: Size)
fn set_adjust_pads(&mut self, val: Vector<size_t>)
fn set_kernel_size(&mut self, val: Vector<size_t>)
fn set_strides(&mut self, val: Vector<size_t>)
fn set_dilations(&mut self, val: Vector<size_t>)
fn set_pads_begin(&mut self, val: Vector<size_t>)
fn set_pads_end(&mut self, val: Vector<size_t>)
fn set_pad_mode(&mut self, val: &str)
fn set_num_output(&mut self, val: i32)
source§impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>
impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>
fn as_raw_BaseConvolutionLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn kernel(&self) -> Size
fn stride(&self) -> Size
fn pad(&self) -> Size
fn dilation(&self) -> Size
fn adjust_pad(&self) -> Size
fn adjust_pads(&self) -> Vector<size_t>
fn kernel_size(&self) -> Vector<size_t>
fn strides(&self) -> Vector<size_t>
fn dilations(&self) -> Vector<size_t>
fn pads_begin(&self) -> Vector<size_t>
fn pads_end(&self) -> Vector<size_t>
fn pad_mode(&self) -> String
fn num_output(&self) -> i32
source§impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>
impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>
fn as_raw_BaseConvolutionLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn kernel(&self) -> Size
fn stride(&self) -> Size
fn pad(&self) -> Size
fn dilation(&self) -> Size
fn adjust_pad(&self) -> Size
fn adjust_pads(&self) -> Vector<size_t>
fn kernel_size(&self) -> Vector<size_t>
fn strides(&self) -> Vector<size_t>
fn dilations(&self) -> Vector<size_t>
fn pads_begin(&self) -> Vector<size_t>
fn pads_end(&self) -> Vector<size_t>
fn pad_mode(&self) -> String
fn num_output(&self) -> i32
source§impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>
impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>
fn as_raw_BaseConvolutionLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn kernel(&self) -> Size
fn stride(&self) -> Size
fn pad(&self) -> Size
fn dilation(&self) -> Size
fn adjust_pad(&self) -> Size
fn adjust_pads(&self) -> Vector<size_t>
fn kernel_size(&self) -> Vector<size_t>
fn strides(&self) -> Vector<size_t>
fn dilations(&self) -> Vector<size_t>
fn pads_begin(&self) -> Vector<size_t>
fn pads_end(&self) -> Vector<size_t>
fn pad_mode(&self) -> String
fn num_output(&self) -> i32
source§impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
fn as_raw_BaseConvolutionLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn kernel(&self) -> Size
fn stride(&self) -> Size
fn pad(&self) -> Size
fn dilation(&self) -> Size
fn adjust_pad(&self) -> Size
fn adjust_pads(&self) -> Vector<size_t>
fn kernel_size(&self) -> Vector<size_t>
fn strides(&self) -> Vector<size_t>
fn dilations(&self) -> Vector<size_t>
fn pads_begin(&self) -> Vector<size_t>
fn pads_end(&self) -> Vector<size_t>
fn pad_mode(&self) -> String
fn num_output(&self) -> i32
source§impl BatchNormLayerInt8Trait for BoxedRefMut<'_, BatchNormLayerInt8>
impl BatchNormLayerInt8Trait for BoxedRefMut<'_, BatchNormLayerInt8>
fn as_raw_mut_BatchNormLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_input_sc(&mut self, val: f32)
fn set_output_sc(&mut self, val: f32)
fn set_input_zp(&mut self, val: i32)
fn set_output_zp(&mut self, val: i32)
source§impl BatchNormLayerInt8TraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
impl BatchNormLayerInt8TraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
source§impl BatchNormLayerTrait for BoxedRefMut<'_, BatchNormLayer>
impl BatchNormLayerTrait for BoxedRefMut<'_, BatchNormLayer>
fn as_raw_mut_BatchNormLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_has_weights(&mut self, val: bool)
fn set_has_bias(&mut self, val: bool)
fn set_epsilon(&mut self, val: f32)
source§impl BatchNormLayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>
impl BatchNormLayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>
fn as_raw_mut_BatchNormLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_has_weights(&mut self, val: bool)
fn set_has_bias(&mut self, val: bool)
fn set_epsilon(&mut self, val: f32)
source§impl BatchNormLayerTraitConst for BoxedRefMut<'_, BatchNormLayer>
impl BatchNormLayerTraitConst for BoxedRefMut<'_, BatchNormLayer>
source§impl BatchNormLayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
impl BatchNormLayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
source§impl BlankLayerTrait for BoxedRefMut<'_, BlankLayer>
impl BlankLayerTrait for BoxedRefMut<'_, BlankLayer>
fn as_raw_mut_BlankLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl BlankLayerTraitConst for BoxedRefMut<'_, BlankLayer>
impl BlankLayerTraitConst for BoxedRefMut<'_, BlankLayer>
fn as_raw_BlankLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl BufferPoolTrait for BoxedRefMut<'_, BufferPool>
impl BufferPoolTrait for BoxedRefMut<'_, BufferPool>
source§impl BufferPoolTraitConst for BoxedRefMut<'_, BufferPool>
impl BufferPoolTraitConst for BoxedRefMut<'_, BufferPool>
fn as_raw_BufferPool(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_allocator(&self) -> Result<Ptr<GpuMat_Allocator>>
fn get_allocator(&self) -> Result<Ptr<GpuMat_Allocator>>
Returns the allocator associated with the stream.
source§impl BufferTrait for BoxedRefMut<'_, Buffer>
impl BufferTrait for BoxedRefMut<'_, Buffer>
fn as_raw_mut_Buffer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn create(
&mut self,
arows: i32,
acols: i32,
atype: i32,
target: Buffer_Target,
auto_release: bool,
) -> Result<()>
fn create( &mut self, arows: i32, acols: i32, atype: i32, target: Buffer_Target, auto_release: bool, ) -> Result<()>
Allocates memory for ogl::Buffer object. Read more
source§fn create_def(&mut self, arows: i32, acols: i32, atype: i32) -> Result<()>
fn create_def(&mut self, arows: i32, acols: i32, atype: i32) -> Result<()>
Allocates memory for ogl::Buffer object. Read more
source§fn create_size(
&mut self,
asize: Size,
atype: i32,
target: Buffer_Target,
auto_release: bool,
) -> Result<()>
fn create_size( &mut self, asize: Size, atype: i32, target: Buffer_Target, auto_release: bool, ) -> Result<()>
Allocates memory for ogl::Buffer object. Read more
source§fn release(&mut self) -> Result<()>
fn release(&mut self) -> Result<()>
Decrements the reference counter and destroys the buffer object if needed. Read more
source§fn copy_from(
&mut self,
arr: &impl ToInputArray,
target: Buffer_Target,
auto_release: bool,
) -> Result<()>
fn copy_from( &mut self, arr: &impl ToInputArray, target: Buffer_Target, auto_release: bool, ) -> Result<()>
Copies from host/device memory to OpenGL buffer. Read more
source§fn copy_from_def(&mut self, arr: &impl ToInputArray) -> Result<()>
fn copy_from_def(&mut self, arr: &impl ToInputArray) -> Result<()>
Copies from host/device memory to OpenGL buffer. Read more
source§fn copy_from_1(
&mut self,
arr: &impl ToInputArray,
stream: &mut impl StreamTrait,
target: Buffer_Target,
auto_release: bool,
) -> Result<()>
fn copy_from_1( &mut self, arr: &impl ToInputArray, stream: &mut impl StreamTrait, target: Buffer_Target, auto_release: bool, ) -> Result<()>
Copies from host/device memory to OpenGL buffer. Read more
source§fn copy_from_def_1(
&mut self,
arr: &impl ToInputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn copy_from_def_1( &mut self, arr: &impl ToInputArray, stream: &mut impl StreamTrait, ) -> Result<()>
@overload Read more
source§fn map_host(&mut self, access: Buffer_Access) -> Result<Mat>
fn map_host(&mut self, access: Buffer_Access) -> Result<Mat>
Maps OpenGL buffer to host memory. Read more
source§fn unmap_host(&mut self) -> Result<()>
fn unmap_host(&mut self) -> Result<()>
Unmaps OpenGL buffer.
source§fn map_device(&mut self) -> Result<GpuMat>
fn map_device(&mut self) -> Result<GpuMat>
map to device memory (blocking)
fn unmap_device(&mut self) -> Result<()>
source§fn map_device_1(&mut self, stream: &mut impl StreamTrait) -> Result<GpuMat>
fn map_device_1(&mut self, stream: &mut impl StreamTrait) -> Result<GpuMat>
Maps OpenGL buffer to CUDA device memory. Read more
source§fn unmap_device_1(&mut self, stream: &mut impl StreamTrait) -> Result<()>
fn unmap_device_1(&mut self, stream: &mut impl StreamTrait) -> Result<()>
Unmaps OpenGL buffer.
source§impl BufferTraitConst for BoxedRefMut<'_, Buffer>
impl BufferTraitConst for BoxedRefMut<'_, Buffer>
fn as_raw_Buffer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>
fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>
Copies from OpenGL buffer to host/device memory or another OpenGL buffer object. Read more
source§fn copy_to_1(
&self,
arr: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn copy_to_1( &self, arr: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
Copies from OpenGL buffer to host/device memory or another OpenGL buffer object. Read more
source§fn clone(&self, target: Buffer_Target, auto_release: bool) -> Result<Buffer>
fn clone(&self, target: Buffer_Target, auto_release: bool) -> Result<Buffer>
Creates a full copy of the buffer object and the underlying data. Read more
source§fn clone_def(&self) -> Result<Buffer>
fn clone_def(&self) -> Result<Buffer>
Creates a full copy of the buffer object and the underlying data. Read more
source§fn bind(&self, target: Buffer_Target) -> Result<()>
fn bind(&self, target: Buffer_Target) -> Result<()>
Binds OpenGL buffer to the specified buffer binding point. Read more
fn rows(&self) -> Result<i32>
fn cols(&self) -> Result<i32>
fn size(&self) -> Result<Size>
fn empty(&self) -> Result<bool>
fn typ(&self) -> Result<i32>
fn depth(&self) -> Result<i32>
fn channels(&self) -> Result<i32>
fn elem_size(&self) -> Result<i32>
fn elem_size1(&self) -> Result<i32>
source§impl CLAHETrait for BoxedRefMut<'_, CLAHE>
impl CLAHETrait for BoxedRefMut<'_, CLAHE>
fn as_raw_mut_CLAHE( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn apply(
&mut self,
src: &impl ToInputArray,
dst: &mut impl ToOutputArray,
) -> Result<()>
fn apply( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray, ) -> Result<()>
Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization. Read more
source§fn set_clip_limit(&mut self, clip_limit: f64) -> Result<()>
fn set_clip_limit(&mut self, clip_limit: f64) -> Result<()>
Sets threshold for contrast limiting. Read more
source§fn set_tiles_grid_size(&mut self, tile_grid_size: Size) -> Result<()>
fn set_tiles_grid_size(&mut self, tile_grid_size: Size) -> Result<()>
Sets size of grid for histogram equalization. Input image will be divided into
equally sized rectangular tiles. Read more
fn collect_garbage(&mut self) -> Result<()>
source§impl CLAHETraitConst for BoxedRefMut<'_, CLAHE>
impl CLAHETraitConst for BoxedRefMut<'_, CLAHE>
fn as_raw_CLAHE(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_clip_limit(&self) -> Result<f64>
fn get_clip_limit(&self) -> Result<f64>
Returns threshold value for contrast limiting.
source§fn get_tiles_grid_size(&self) -> Result<Size>
fn get_tiles_grid_size(&self) -> Result<Size>
Returns Size defines the number of tiles in row and column.
source§impl ChannelsPReLULayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>
impl ChannelsPReLULayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>
fn as_raw_mut_ChannelsPReLULayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ChannelsPReLULayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
impl ChannelsPReLULayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
fn as_raw_ChannelsPReLULayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ClassificationModelTrait for BoxedRefMut<'_, ClassificationModel>
impl ClassificationModelTrait for BoxedRefMut<'_, ClassificationModel>
fn as_raw_mut_ClassificationModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn classify(&mut self, frame: &impl ToInputArray) -> Result<Tuple<(i32, f32)>>
fn classify(&mut self, frame: &impl ToInputArray) -> Result<Tuple<(i32, f32)>>
Given the @p input frame, create input blob, run net and return top-1 prediction. Read more
source§fn classify_1(
&mut self,
frame: &impl ToInputArray,
class_id: &mut i32,
conf: &mut f32,
) -> Result<()>
fn classify_1( &mut self, frame: &impl ToInputArray, class_id: &mut i32, conf: &mut f32, ) -> Result<()>
Given the @p input frame, create input blob, run net and return top-1 prediction. Read more
source§impl ClassificationModelTraitConst for BoxedRefMut<'_, ClassificationModel>
impl ClassificationModelTraitConst for BoxedRefMut<'_, ClassificationModel>
fn as_raw_ClassificationModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl CommandLineParserTrait for BoxedRefMut<'_, CommandLineParser>
impl CommandLineParserTrait for BoxedRefMut<'_, CommandLineParser>
source§impl CommandLineParserTraitConst for BoxedRefMut<'_, CommandLineParser>
impl CommandLineParserTraitConst for BoxedRefMut<'_, CommandLineParser>
fn as_raw_CommandLineParser( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_bool(&self, name: &str, space_delete: bool) -> Result<bool>
fn get_bool(&self, name: &str, space_delete: bool) -> Result<bool>
Access arguments by name Read more
source§fn get_i32(&self, name: &str, space_delete: bool) -> Result<i32>
fn get_i32(&self, name: &str, space_delete: bool) -> Result<i32>
Access arguments by name Read more
source§fn get_f64(&self, name: &str, space_delete: bool) -> Result<f64>
fn get_f64(&self, name: &str, space_delete: bool) -> Result<f64>
Access arguments by name Read more
source§fn get_str(&self, name: &str, space_delete: bool) -> Result<String>
fn get_str(&self, name: &str, space_delete: bool) -> Result<String>
Access arguments by name Read more
source§fn get_u64(&self, name: &str, space_delete: bool) -> Result<u64>
fn get_u64(&self, name: &str, space_delete: bool) -> Result<u64>
Access arguments by name Read more
source§fn get_bool_idx(&self, index: i32, space_delete: bool) -> Result<bool>
fn get_bool_idx(&self, index: i32, space_delete: bool) -> Result<bool>
Access positional arguments by index Read more
source§fn get_bool_idx_def(&self, index: i32) -> Result<bool>
fn get_bool_idx_def(&self, index: i32) -> Result<bool>
Access positional arguments by index Read more
source§fn get_i32_idx(&self, index: i32, space_delete: bool) -> Result<i32>
fn get_i32_idx(&self, index: i32, space_delete: bool) -> Result<i32>
Access positional arguments by index Read more
source§fn get_i32_idx_def(&self, index: i32) -> Result<i32>
fn get_i32_idx_def(&self, index: i32) -> Result<i32>
Access positional arguments by index Read more
source§fn get_f64_idx(&self, index: i32, space_delete: bool) -> Result<f64>
fn get_f64_idx(&self, index: i32, space_delete: bool) -> Result<f64>
Access positional arguments by index Read more
source§fn get_f64_idx_def(&self, index: i32) -> Result<f64>
fn get_f64_idx_def(&self, index: i32) -> Result<f64>
Access positional arguments by index Read more
source§fn get_str_idx(&self, index: i32, space_delete: bool) -> Result<String>
fn get_str_idx(&self, index: i32, space_delete: bool) -> Result<String>
Access positional arguments by index Read more
source§fn get_str_idx_def(&self, index: i32) -> Result<String>
fn get_str_idx_def(&self, index: i32) -> Result<String>
Access positional arguments by index Read more
source§fn get_u64_idx(&self, index: i32, space_delete: bool) -> Result<u64>
fn get_u64_idx(&self, index: i32, space_delete: bool) -> Result<u64>
Access positional arguments by index Read more
source§fn get_u64_idx_def(&self, index: i32) -> Result<u64>
fn get_u64_idx_def(&self, index: i32) -> Result<u64>
Access positional arguments by index Read more
source§impl ConcatLayerTrait for BoxedRefMut<'_, ConcatLayer>
impl ConcatLayerTrait for BoxedRefMut<'_, ConcatLayer>
fn as_raw_mut_ConcatLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_axis(&mut self, val: i32)
source§fn set_padding(&mut self, val: bool)
fn set_padding(&mut self, val: bool)
Add zero padding in case of concatenation of blobs with different
spatial sizes. Read more
fn set_padding_value(&mut self, val: i32)
source§impl ConcatLayerTraitConst for BoxedRefMut<'_, ConcatLayer>
impl ConcatLayerTraitConst for BoxedRefMut<'_, ConcatLayer>
source§impl ConjGradSolverTrait for BoxedRefMut<'_, ConjGradSolver>
impl ConjGradSolverTrait for BoxedRefMut<'_, ConjGradSolver>
fn as_raw_mut_ConjGradSolver( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ConjGradSolverTraitConst for BoxedRefMut<'_, ConjGradSolver>
impl ConjGradSolverTraitConst for BoxedRefMut<'_, ConjGradSolver>
fn as_raw_ConjGradSolver( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ConstLayerTrait for BoxedRefMut<'_, ConstLayer>
impl ConstLayerTrait for BoxedRefMut<'_, ConstLayer>
fn as_raw_mut_ConstLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ConstLayerTraitConst for BoxedRefMut<'_, ConstLayer>
impl ConstLayerTraitConst for BoxedRefMut<'_, ConstLayer>
fn as_raw_ConstLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ContextTrait for BoxedRefMut<'_, Context>
impl ContextTrait for BoxedRefMut<'_, Context>
fn as_raw_mut_Context( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, c: &impl ContextTraitConst) -> Result<()>
fn set_1(&mut self, c: Context)
fn get_prog( &mut self, prog: &impl ProgramSourceTraitConst, buildopt: &str, errmsg: &mut String, ) -> Result<Program>
fn unload_prog(&mut self, prog: &mut impl ProgramTrait) -> Result<()>
fn set_use_svm(&mut self, enabled: bool) -> Result<()>
fn release(&mut self) -> Result<()>
source§impl ContextTraitConst for BoxedRefMut<'_, Context>
impl ContextTraitConst for BoxedRefMut<'_, Context>
fn as_raw_Context(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn ndevices(&self) -> Result<size_t>
fn device(&self, idx: size_t) -> Result<Device>
source§fn get_opencl_context_property(&self, property_id: i32) -> Result<*mut c_void>
fn get_opencl_context_property(&self, property_id: i32) -> Result<*mut c_void>
Get OpenCL context property specified on context creation Read more
fn use_svm(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
source§impl Context_UserContextTrait for BoxedRefMut<'_, Context_UserContext>
impl Context_UserContextTrait for BoxedRefMut<'_, Context_UserContext>
fn as_raw_mut_Context_UserContext( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Context_UserContextTraitConst for BoxedRefMut<'_, Context_UserContext>
impl Context_UserContextTraitConst for BoxedRefMut<'_, Context_UserContext>
fn as_raw_Context_UserContext( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ConvolutionLayerInt8Trait for BoxedRefMut<'_, ConvolutionLayerInt8>
impl ConvolutionLayerInt8Trait for BoxedRefMut<'_, ConvolutionLayerInt8>
fn as_raw_mut_ConvolutionLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_input_zp(&mut self, val: i32)
fn set_output_zp(&mut self, val: i32)
fn set_output_sc(&mut self, val: f32)
source§impl ConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayer>
impl ConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayer>
fn as_raw_mut_ConvolutionLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>
impl ConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>
fn as_raw_ConvolutionLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl CorrelationLayerTrait for BoxedRefMut<'_, CorrelationLayer>
impl CorrelationLayerTrait for BoxedRefMut<'_, CorrelationLayer>
fn as_raw_mut_CorrelationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl CorrelationLayerTraitConst for BoxedRefMut<'_, CorrelationLayer>
impl CorrelationLayerTraitConst for BoxedRefMut<'_, CorrelationLayer>
fn as_raw_CorrelationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl CropAndResizeLayerTrait for BoxedRefMut<'_, CropAndResizeLayer>
impl CropAndResizeLayerTrait for BoxedRefMut<'_, CropAndResizeLayer>
fn as_raw_mut_CropAndResizeLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl CropAndResizeLayerTraitConst for BoxedRefMut<'_, CropAndResizeLayer>
impl CropAndResizeLayerTraitConst for BoxedRefMut<'_, CropAndResizeLayer>
fn as_raw_CropAndResizeLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl CropLayerTrait for BoxedRefMut<'_, CropLayer>
impl CropLayerTrait for BoxedRefMut<'_, CropLayer>
fn as_raw_mut_CropLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl CropLayerTraitConst for BoxedRefMut<'_, CropLayer>
impl CropLayerTraitConst for BoxedRefMut<'_, CropLayer>
fn as_raw_CropLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl CumSumLayerTrait for BoxedRefMut<'_, CumSumLayer>
impl CumSumLayerTrait for BoxedRefMut<'_, CumSumLayer>
fn as_raw_mut_CumSumLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_exclusive(&mut self, val: i32)
fn set_reverse(&mut self, val: i32)
source§impl CumSumLayerTraitConst for BoxedRefMut<'_, CumSumLayer>
impl CumSumLayerTraitConst for BoxedRefMut<'_, CumSumLayer>
source§impl DataAugmentationLayerTrait for BoxedRefMut<'_, DataAugmentationLayer>
impl DataAugmentationLayerTrait for BoxedRefMut<'_, DataAugmentationLayer>
fn as_raw_mut_DataAugmentationLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl DataAugmentationLayerTraitConst for BoxedRefMut<'_, DataAugmentationLayer>
impl DataAugmentationLayerTraitConst for BoxedRefMut<'_, DataAugmentationLayer>
fn as_raw_DataAugmentationLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl DeconvolutionLayerTrait for BoxedRefMut<'_, DeconvolutionLayer>
impl DeconvolutionLayerTrait for BoxedRefMut<'_, DeconvolutionLayer>
fn as_raw_mut_DeconvolutionLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl DeconvolutionLayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
impl DeconvolutionLayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
fn as_raw_DeconvolutionLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl DequantizeLayerTrait for BoxedRefMut<'_, DequantizeLayer>
impl DequantizeLayerTrait for BoxedRefMut<'_, DequantizeLayer>
source§impl DequantizeLayerTraitConst for BoxedRefMut<'_, DequantizeLayer>
impl DequantizeLayerTraitConst for BoxedRefMut<'_, DequantizeLayer>
source§impl Detail_CheckContextTrait for BoxedRefMut<'_, Detail_CheckContext>
impl Detail_CheckContextTrait for BoxedRefMut<'_, Detail_CheckContext>
fn as_raw_mut_Detail_CheckContext( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_line(&mut self, val: i32)
fn set_test_op(&mut self, val: Detail_TestOp)
source§impl Detail_CheckContextTraitConst for BoxedRefMut<'_, Detail_CheckContext>
impl Detail_CheckContextTraitConst for BoxedRefMut<'_, Detail_CheckContext>
fn as_raw_Detail_CheckContext( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn func(&self) -> String
fn file(&self) -> String
fn line(&self) -> i32
fn test_op(&self) -> Detail_TestOp
fn message(&self) -> String
fn p1_str(&self) -> String
fn p2_str(&self) -> String
source§impl DetectionModelTrait for BoxedRefMut<'_, DetectionModel>
impl DetectionModelTrait for BoxedRefMut<'_, DetectionModel>
fn as_raw_mut_DetectionModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_nms_across_classes(&mut self, value: bool) -> Result<DetectionModel>
fn set_nms_across_classes(&mut self, value: bool) -> Result<DetectionModel>
nmsAcrossClasses defaults to false,
such that when non max suppression is used during the detect() function, it will do so per-class.
This function allows you to toggle this behaviour. Read more
source§fn get_nms_across_classes(&mut self) -> Result<bool>
fn get_nms_across_classes(&mut self) -> Result<bool>
Getter for nmsAcrossClasses. This variable defaults to false,
such that when non max suppression is used during the detect() function, it will do so only per-class
source§impl DetectionModelTraitConst for BoxedRefMut<'_, DetectionModel>
impl DetectionModelTraitConst for BoxedRefMut<'_, DetectionModel>
fn as_raw_DetectionModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl DetectionOutputLayerTrait for BoxedRefMut<'_, DetectionOutputLayer>
impl DetectionOutputLayerTrait for BoxedRefMut<'_, DetectionOutputLayer>
fn as_raw_mut_DetectionOutputLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl DetectionOutputLayerTraitConst for BoxedRefMut<'_, DetectionOutputLayer>
impl DetectionOutputLayerTraitConst for BoxedRefMut<'_, DetectionOutputLayer>
fn as_raw_DetectionOutputLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl DeviceInfoTrait for BoxedRefMut<'_, DeviceInfo>
impl DeviceInfoTrait for BoxedRefMut<'_, DeviceInfo>
fn as_raw_mut_DeviceInfo( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl DeviceInfoTraitConst for BoxedRefMut<'_, DeviceInfo>
impl DeviceInfoTraitConst for BoxedRefMut<'_, DeviceInfo>
fn as_raw_DeviceInfo(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn total_global_mem(&self) -> Result<size_t>
fn total_global_mem(&self) -> Result<size_t>
global memory available on device in bytes
shared memory available per block in bytes
source§fn regs_per_block(&self) -> Result<i32>
fn regs_per_block(&self) -> Result<i32>
32-bit registers available per block
source§fn max_threads_per_block(&self) -> Result<i32>
fn max_threads_per_block(&self) -> Result<i32>
maximum number of threads per block
source§fn max_threads_dim(&self) -> Result<Vec3i>
fn max_threads_dim(&self) -> Result<Vec3i>
maximum size of each dimension of a block
source§fn max_grid_size(&self) -> Result<Vec3i>
fn max_grid_size(&self) -> Result<Vec3i>
maximum size of each dimension of a grid
source§fn clock_rate(&self) -> Result<i32>
fn clock_rate(&self) -> Result<i32>
clock frequency in kilohertz
source§fn total_const_mem(&self) -> Result<size_t>
fn total_const_mem(&self) -> Result<size_t>
constant memory available on device in bytes
source§fn major_version(&self) -> Result<i32>
fn major_version(&self) -> Result<i32>
major compute capability
source§fn minor_version(&self) -> Result<i32>
fn minor_version(&self) -> Result<i32>
minor compute capability
source§fn texture_alignment(&self) -> Result<size_t>
fn texture_alignment(&self) -> Result<size_t>
alignment requirement for textures
source§fn texture_pitch_alignment(&self) -> Result<size_t>
fn texture_pitch_alignment(&self) -> Result<size_t>
pitch alignment requirement for texture references bound to pitched memory
source§fn multi_processor_count(&self) -> Result<i32>
fn multi_processor_count(&self) -> Result<i32>
number of multiprocessors on device
source§fn kernel_exec_timeout_enabled(&self) -> Result<bool>
fn kernel_exec_timeout_enabled(&self) -> Result<bool>
specified whether there is a run time limit on kernels
source§fn integrated(&self) -> Result<bool>
fn integrated(&self) -> Result<bool>
device is integrated as opposed to discrete
source§fn can_map_host_memory(&self) -> Result<bool>
fn can_map_host_memory(&self) -> Result<bool>
device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer
source§fn compute_mode(&self) -> Result<DeviceInfo_ComputeMode>
fn compute_mode(&self) -> Result<DeviceInfo_ComputeMode>
compute mode
source§fn max_texture1_d(&self) -> Result<i32>
fn max_texture1_d(&self) -> Result<i32>
maximum 1D texture size
source§fn max_texture1_d_mipmap(&self) -> Result<i32>
fn max_texture1_d_mipmap(&self) -> Result<i32>
maximum 1D mipmapped texture size
source§fn max_texture1_d_linear(&self) -> Result<i32>
fn max_texture1_d_linear(&self) -> Result<i32>
maximum size for 1D textures bound to linear memory
source§fn max_texture_2d(&self) -> Result<Vec2i>
fn max_texture_2d(&self) -> Result<Vec2i>
maximum 2D texture dimensions
source§fn max_texture_2d_mipmap(&self) -> Result<Vec2i>
fn max_texture_2d_mipmap(&self) -> Result<Vec2i>
maximum 2D mipmapped texture dimensions
source§fn max_texture_2d_linear(&self) -> Result<Vec3i>
fn max_texture_2d_linear(&self) -> Result<Vec3i>
maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory
source§fn max_texture_2d_gather(&self) -> Result<Vec2i>
fn max_texture_2d_gather(&self) -> Result<Vec2i>
maximum 2D texture dimensions if texture gather operations have to be performed
source§fn max_texture_3d(&self) -> Result<Vec3i>
fn max_texture_3d(&self) -> Result<Vec3i>
maximum 3D texture dimensions
source§fn max_texture_cubemap(&self) -> Result<i32>
fn max_texture_cubemap(&self) -> Result<i32>
maximum Cubemap texture dimensions
source§fn max_texture1_d_layered(&self) -> Result<Vec2i>
fn max_texture1_d_layered(&self) -> Result<Vec2i>
maximum 1D layered texture dimensions
source§fn max_texture_2d_layered(&self) -> Result<Vec3i>
fn max_texture_2d_layered(&self) -> Result<Vec3i>
maximum 2D layered texture dimensions
source§fn max_texture_cubemap_layered(&self) -> Result<Vec2i>
fn max_texture_cubemap_layered(&self) -> Result<Vec2i>
maximum Cubemap layered texture dimensions
source§fn max_surface1_d(&self) -> Result<i32>
fn max_surface1_d(&self) -> Result<i32>
maximum 1D surface size
source§fn max_surface_2d(&self) -> Result<Vec2i>
fn max_surface_2d(&self) -> Result<Vec2i>
maximum 2D surface dimensions
source§fn max_surface_3d(&self) -> Result<Vec3i>
fn max_surface_3d(&self) -> Result<Vec3i>
maximum 3D surface dimensions
source§fn max_surface1_d_layered(&self) -> Result<Vec2i>
fn max_surface1_d_layered(&self) -> Result<Vec2i>
maximum 1D layered surface dimensions
source§fn max_surface_2d_layered(&self) -> Result<Vec3i>
fn max_surface_2d_layered(&self) -> Result<Vec3i>
maximum 2D layered surface dimensions
source§fn max_surface_cubemap(&self) -> Result<i32>
fn max_surface_cubemap(&self) -> Result<i32>
maximum Cubemap surface dimensions
source§fn max_surface_cubemap_layered(&self) -> Result<Vec2i>
fn max_surface_cubemap_layered(&self) -> Result<Vec2i>
maximum Cubemap layered surface dimensions
source§fn surface_alignment(&self) -> Result<size_t>
fn surface_alignment(&self) -> Result<size_t>
alignment requirements for surfaces
source§fn concurrent_kernels(&self) -> Result<bool>
fn concurrent_kernels(&self) -> Result<bool>
device can possibly execute multiple kernels concurrently
source§fn ecc_enabled(&self) -> Result<bool>
fn ecc_enabled(&self) -> Result<bool>
device has ECC support enabled
source§fn pci_bus_id(&self) -> Result<i32>
fn pci_bus_id(&self) -> Result<i32>
PCI bus ID of the device
source§fn pci_device_id(&self) -> Result<i32>
fn pci_device_id(&self) -> Result<i32>
PCI device ID of the device
source§fn pci_domain_id(&self) -> Result<i32>
fn pci_domain_id(&self) -> Result<i32>
PCI domain ID of the device
source§fn tcc_driver(&self) -> Result<bool>
fn tcc_driver(&self) -> Result<bool>
true if device is a Tesla device using TCC driver, false otherwise
source§fn async_engine_count(&self) -> Result<i32>
fn async_engine_count(&self) -> Result<i32>
number of asynchronous engines
source§fn unified_addressing(&self) -> Result<bool>
fn unified_addressing(&self) -> Result<bool>
device shares a unified address space with the host
source§fn memory_clock_rate(&self) -> Result<i32>
fn memory_clock_rate(&self) -> Result<i32>
peak memory clock frequency in kilohertz
source§fn memory_bus_width(&self) -> Result<i32>
fn memory_bus_width(&self) -> Result<i32>
global memory bus width in bits
source§fn l2_cache_size(&self) -> Result<i32>
fn l2_cache_size(&self) -> Result<i32>
size of L2 cache in bytes
source§fn max_threads_per_multi_processor(&self) -> Result<i32>
fn max_threads_per_multi_processor(&self) -> Result<i32>
maximum resident threads per multiprocessor
source§fn query_memory(
&self,
total_memory: &mut size_t,
free_memory: &mut size_t,
) -> Result<()>
fn query_memory( &self, total_memory: &mut size_t, free_memory: &mut size_t, ) -> Result<()>
gets free and total device memory
fn free_memory(&self) -> Result<size_t>
fn total_memory(&self) -> Result<size_t>
source§impl DeviceTrait for BoxedRefMut<'_, Device>
impl DeviceTrait for BoxedRefMut<'_, Device>
source§impl DeviceTraitConst for BoxedRefMut<'_, Device>
impl DeviceTraitConst for BoxedRefMut<'_, Device>
fn as_raw_Device(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn name(&self) -> Result<String>
fn extensions(&self) -> Result<String>
fn is_extension_supported(&self, extension_name: &str) -> Result<bool>
fn version(&self) -> Result<String>
fn vendor_name(&self) -> Result<String>
fn opencl_c_version(&self) -> Result<String>
fn opencl_version(&self) -> Result<String>
fn device_version_major(&self) -> Result<i32>
fn device_version_minor(&self) -> Result<i32>
fn driver_version(&self) -> Result<String>
fn ptr(&self) -> Result<*mut c_void>
fn typ(&self) -> Result<i32>
fn address_bits(&self) -> Result<i32>
fn available(&self) -> Result<bool>
fn compiler_available(&self) -> Result<bool>
fn linker_available(&self) -> Result<bool>
fn double_fp_config(&self) -> Result<i32>
fn single_fp_config(&self) -> Result<i32>
fn half_fp_config(&self) -> Result<i32>
fn endian_little(&self) -> Result<bool>
fn error_correction_support(&self) -> Result<bool>
fn execution_capabilities(&self) -> Result<i32>
fn global_mem_cache_size(&self) -> Result<size_t>
fn global_mem_cache_type(&self) -> Result<i32>
fn global_mem_cache_line_size(&self) -> Result<i32>
fn global_mem_size(&self) -> Result<size_t>
fn local_mem_size(&self) -> Result<size_t>
fn local_mem_type(&self) -> Result<i32>
fn host_unified_memory(&self) -> Result<bool>
fn image_support(&self) -> Result<bool>
fn image_from_buffer_support(&self) -> Result<bool>
fn image_pitch_alignment(&self) -> Result<u32>
fn image_base_address_alignment(&self) -> Result<u32>
source§fn intel_subgroups_support(&self) -> Result<bool>
fn intel_subgroups_support(&self) -> Result<bool>
deprecated, use isExtensionSupported() method (probably with “cl_khr_subgroups” value)
fn image_2d_max_width(&self) -> Result<size_t>
fn image_2d_max_height(&self) -> Result<size_t>
fn image_3d_max_width(&self) -> Result<size_t>
fn image_3d_max_height(&self) -> Result<size_t>
fn image_3d_max_depth(&self) -> Result<size_t>
fn image_max_buffer_size(&self) -> Result<size_t>
fn image_max_array_size(&self) -> Result<size_t>
fn vendor_id(&self) -> Result<i32>
fn is_amd(&self) -> Result<bool>
fn is_intel(&self) -> Result<bool>
fn is_n_vidia(&self) -> Result<bool>
fn max_clock_frequency(&self) -> Result<i32>
fn max_compute_units(&self) -> Result<i32>
fn max_constant_args(&self) -> Result<i32>
fn max_constant_buffer_size(&self) -> Result<size_t>
fn max_mem_alloc_size(&self) -> Result<size_t>
fn max_parameter_size(&self) -> Result<size_t>
fn max_read_image_args(&self) -> Result<i32>
fn max_write_image_args(&self) -> Result<i32>
fn max_samplers(&self) -> Result<i32>
fn max_work_group_size(&self) -> Result<size_t>
fn max_work_item_dims(&self) -> Result<i32>
fn max_work_item_sizes(&self, unnamed: &mut size_t) -> Result<()>
fn mem_base_addr_align(&self) -> Result<i32>
fn native_vector_width_char(&self) -> Result<i32>
fn native_vector_width_short(&self) -> Result<i32>
fn native_vector_width_int(&self) -> Result<i32>
fn native_vector_width_long(&self) -> Result<i32>
fn native_vector_width_float(&self) -> Result<i32>
fn native_vector_width_double(&self) -> Result<i32>
fn native_vector_width_half(&self) -> Result<i32>
fn preferred_vector_width_char(&self) -> Result<i32>
fn preferred_vector_width_short(&self) -> Result<i32>
fn preferred_vector_width_int(&self) -> Result<i32>
fn preferred_vector_width_long(&self) -> Result<i32>
fn preferred_vector_width_float(&self) -> Result<i32>
fn preferred_vector_width_double(&self) -> Result<i32>
fn preferred_vector_width_half(&self) -> Result<i32>
fn printf_buffer_size(&self) -> Result<size_t>
fn profiling_timer_resolution(&self) -> Result<size_t>
fn empty(&self) -> Result<bool>
source§impl DictTrait for BoxedRefMut<'_, Dict>
impl DictTrait for BoxedRefMut<'_, Dict>
fn as_raw_mut_Dict( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
If the @p key in the dictionary then returns pointer to its value, else returns NULL.
source§fn set_str(&mut self, key: &str, value: &str) -> Result<String>
fn set_str(&mut self, key: &str, value: &str) -> Result<String>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set(
&mut self,
key: &str,
value: &impl DictValueTraitConst,
) -> Result<DictValue>
fn set( &mut self, key: &str, value: &impl DictValueTraitConst, ) -> Result<DictValue>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§impl DictTrait for BoxedRefMut<'_, LayerParams>
impl DictTrait for BoxedRefMut<'_, LayerParams>
fn as_raw_mut_Dict( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>
If the @p key in the dictionary then returns pointer to its value, else returns NULL.
source§fn set_str(&mut self, key: &str, value: &str) -> Result<String>
fn set_str(&mut self, key: &str, value: &str) -> Result<String>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set(
&mut self,
key: &str,
value: &impl DictValueTraitConst,
) -> Result<DictValue>
fn set( &mut self, key: &str, value: &impl DictValueTraitConst, ) -> Result<DictValue>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>
Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§impl DictTraitConst for BoxedRefMut<'_, Dict>
impl DictTraitConst for BoxedRefMut<'_, Dict>
source§impl DictTraitConst for BoxedRefMut<'_, LayerParams>
impl DictTraitConst for BoxedRefMut<'_, LayerParams>
source§impl DictValueTrait for BoxedRefMut<'_, DictValue>
impl DictValueTrait for BoxedRefMut<'_, DictValue>
fn as_raw_mut_DictValue( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, r: &impl DictValueTraitConst) -> Result<()>
source§impl DictValueTraitConst for BoxedRefMut<'_, DictValue>
impl DictValueTraitConst for BoxedRefMut<'_, DictValue>
fn as_raw_DictValue(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_str_def(&self) -> Result<String>
fn get_f64_def(&self) -> Result<f64>
fn get_i32_def(&self) -> Result<i32>
fn get_i64_def(&self) -> Result<i64>
fn size(&self) -> Result<i32>
fn is_int(&self) -> Result<bool>
fn is_string(&self) -> Result<bool>
fn is_real(&self) -> Result<bool>
source§impl DownhillSolverTrait for BoxedRefMut<'_, DownhillSolver>
impl DownhillSolverTrait for BoxedRefMut<'_, DownhillSolver>
fn as_raw_mut_DownhillSolver( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()>
fn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()>
Sets the initial step that will be used in downhill simplex algorithm. Read more
source§impl DownhillSolverTraitConst for BoxedRefMut<'_, DownhillSolver>
impl DownhillSolverTraitConst for BoxedRefMut<'_, DownhillSolver>
fn as_raw_DownhillSolver( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_init_step(&self, step: &mut impl ToOutputArray) -> Result<()>
fn get_init_step(&self, step: &mut impl ToOutputArray) -> Result<()>
Returns the initial step that will be used in downhill simplex algorithm. Read more
source§impl ELULayerTrait for BoxedRefMut<'_, ELULayer>
impl ELULayerTrait for BoxedRefMut<'_, ELULayer>
fn as_raw_mut_ELULayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ELULayerTraitConst for BoxedRefMut<'_, ELULayer>
impl ELULayerTraitConst for BoxedRefMut<'_, ELULayer>
fn as_raw_ELULayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl EltwiseLayerInt8Trait for BoxedRefMut<'_, EltwiseLayerInt8>
impl EltwiseLayerInt8Trait for BoxedRefMut<'_, EltwiseLayerInt8>
fn as_raw_mut_EltwiseLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl EltwiseLayerInt8TraitConst for BoxedRefMut<'_, EltwiseLayerInt8>
impl EltwiseLayerInt8TraitConst for BoxedRefMut<'_, EltwiseLayerInt8>
fn as_raw_EltwiseLayerInt8( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl EltwiseLayerTrait for BoxedRefMut<'_, EltwiseLayer>
impl EltwiseLayerTrait for BoxedRefMut<'_, EltwiseLayer>
fn as_raw_mut_EltwiseLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl EltwiseLayerTraitConst for BoxedRefMut<'_, EltwiseLayer>
impl EltwiseLayerTraitConst for BoxedRefMut<'_, EltwiseLayer>
fn as_raw_EltwiseLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl EventTrait for BoxedRefMut<'_, Event>
impl EventTrait for BoxedRefMut<'_, Event>
fn as_raw_mut_Event( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn wait_for_completion(&mut self) -> Result<()>
fn wait_for_completion(&mut self) -> Result<()>
waits for an event to complete
source§impl EventTraitConst for BoxedRefMut<'_, Event>
impl EventTraitConst for BoxedRefMut<'_, Event>
fn as_raw_Event(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn query_if_complete(&self) -> Result<bool>
fn query_if_complete(&self) -> Result<bool>
queries an event’s status
source§impl ExceptionTrait for BoxedRefMut<'_, Exception>
impl ExceptionTrait for BoxedRefMut<'_, Exception>
source§impl ExceptionTraitConst for BoxedRefMut<'_, Exception>
impl ExceptionTraitConst for BoxedRefMut<'_, Exception>
fn as_raw_Exception(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ExpLayerTrait for BoxedRefMut<'_, ExpLayer>
impl ExpLayerTrait for BoxedRefMut<'_, ExpLayer>
source§impl ExpLayerTraitConst for BoxedRefMut<'_, ExpLayer>
impl ExpLayerTraitConst for BoxedRefMut<'_, ExpLayer>
source§impl FileNodeIteratorTrait for BoxedRefMut<'_, FileNodeIterator>
impl FileNodeIteratorTrait for BoxedRefMut<'_, FileNodeIterator>
fn as_raw_mut_FileNodeIterator( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, it: &impl FileNodeIteratorTraitConst) -> Result<()>
source§fn incr(&mut self) -> Result<FileNodeIterator>
fn incr(&mut self) -> Result<FileNodeIterator>
moves iterator to the next node
source§impl FileNodeIteratorTraitConst for BoxedRefMut<'_, FileNodeIterator>
impl FileNodeIteratorTraitConst for BoxedRefMut<'_, FileNodeIterator>
fn as_raw_FileNodeIterator( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn equal_to(&self, it: &impl FileNodeIteratorTraitConst) -> Result<bool>
source§impl FileNodeTrait for BoxedRefMut<'_, FileNode>
impl FileNodeTrait for BoxedRefMut<'_, FileNode>
fn as_raw_mut_FileNode( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_block_idx(&mut self, val: size_t)
fn set_ofs(&mut self, val: size_t)
fn set(&mut self, node: &impl FileNodeTraitConst) -> Result<()>
fn ptr_1(&mut self) -> Result<*mut u8>
source§impl FileNodeTraitConst for BoxedRefMut<'_, FileNode>
impl FileNodeTraitConst for BoxedRefMut<'_, FileNode>
fn as_raw_FileNode(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn block_idx(&self) -> size_t
fn ofs(&self) -> size_t
source§fn get(&self, nodename: &str) -> Result<FileNode>
fn get(&self, nodename: &str) -> Result<FileNode>
Returns element of a mapping node or a sequence node. Read more
source§fn get_node(&self, nodename: &str) -> Result<FileNode>
fn get_node(&self, nodename: &str) -> Result<FileNode>
Returns element of a mapping node or a sequence node. Read more
source§fn at(&self, i: i32) -> Result<FileNode>
fn at(&self, i: i32) -> Result<FileNode>
Returns element of a mapping node or a sequence node. Read more
source§fn name(&self) -> Result<String>
fn name(&self) -> Result<String>
returns the node name or an empty string if the node is nameless
source§fn size(&self) -> Result<size_t>
fn size(&self) -> Result<size_t>
returns the number of elements in the node, if it is a sequence or mapping, or 1 otherwise.
source§fn to_i32(&self) -> Result<i32>
fn to_i32(&self) -> Result<i32>
returns the node content as an integer. If the node stores floating-point number, it is rounded.
fn ptr(&self) -> Result<*const u8>
source§fn begin(&self) -> Result<FileNodeIterator>
fn begin(&self) -> Result<FileNodeIterator>
returns iterator pointing to the first node element
source§fn end(&self) -> Result<FileNodeIterator>
fn end(&self) -> Result<FileNodeIterator>
returns iterator pointing to the element following the last node element
source§impl FileStorageTrait for BoxedRefMut<'_, FileStorage>
impl FileStorageTrait for BoxedRefMut<'_, FileStorage>
fn as_raw_mut_FileStorage( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_state(&mut self, val: i32)
fn set_elname(&mut self, val: &str)
source§fn open(&mut self, filename: &str, flags: i32, encoding: &str) -> Result<bool>
fn open(&mut self, filename: &str, flags: i32, encoding: &str) -> Result<bool>
Opens a file. Read more
source§fn release(&mut self) -> Result<()>
fn release(&mut self) -> Result<()>
Closes the file and releases all the memory buffers. Read more
source§fn release_and_get_string(&mut self) -> Result<String>
fn release_and_get_string(&mut self) -> Result<String>
Closes the file and releases all the memory buffers. Read more
source§fn write_i32(&mut self, name: &str, val: i32) -> Result<()>
fn write_i32(&mut self, name: &str, val: i32) -> Result<()>
Simplified writing API to use with bindings. Read more
source§fn write_f64(&mut self, name: &str, val: f64) -> Result<()>
fn write_f64(&mut self, name: &str, val: f64) -> Result<()>
Simplified writing API to use with bindings. Read more
source§fn write_str(&mut self, name: &str, val: &str) -> Result<()>
fn write_str(&mut self, name: &str, val: &str) -> Result<()>
Simplified writing API to use with bindings. Read more
source§fn write_mat(&mut self, name: &str, val: &impl MatTraitConst) -> Result<()>
fn write_mat(&mut self, name: &str, val: &impl MatTraitConst) -> Result<()>
Simplified writing API to use with bindings. Read more
source§fn write_str_vec(&mut self, name: &str, val: &Vector<String>) -> Result<()>
fn write_str_vec(&mut self, name: &str, val: &Vector<String>) -> Result<()>
Simplified writing API to use with bindings. Read more
source§fn write_raw(&mut self, fmt: &str, vec: &mut [u8]) -> Result<()>
fn write_raw(&mut self, fmt: &str, vec: &mut [u8]) -> Result<()>
Writes multiple numbers. Read more
source§fn write_comment(&mut self, comment: &str, append: bool) -> Result<()>
fn write_comment(&mut self, comment: &str, append: bool) -> Result<()>
Writes a comment. Read more
source§fn start_write_struct(
&mut self,
name: &str,
flags: i32,
type_name: &str,
) -> Result<()>
fn start_write_struct( &mut self, name: &str, flags: i32, type_name: &str, ) -> Result<()>
Starts to write a nested structure (sequence or a mapping). Read more
source§fn start_write_struct_def(&mut self, name: &str, flags: i32) -> Result<()>
fn start_write_struct_def(&mut self, name: &str, flags: i32) -> Result<()>
Starts to write a nested structure (sequence or a mapping). Read more
source§fn end_write_struct(&mut self) -> Result<()>
fn end_write_struct(&mut self) -> Result<()>
Finishes writing nested structure (should pair startWriteStruct())
source§impl FileStorageTraitConst for BoxedRefMut<'_, FileStorage>
impl FileStorageTraitConst for BoxedRefMut<'_, FileStorage>
fn as_raw_FileStorage(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn state(&self) -> i32
fn elname(&self) -> String
source§fn get_first_top_level_node(&self) -> Result<FileNode>
fn get_first_top_level_node(&self) -> Result<FileNode>
Returns the first element of the top-level mapping. Read more
source§fn get(&self, nodename: &str) -> Result<FileNode>
fn get(&self, nodename: &str) -> Result<FileNode>
Returns the specified element of the top-level mapping. Read more
source§impl FlattenLayerTrait for BoxedRefMut<'_, FlattenLayer>
impl FlattenLayerTrait for BoxedRefMut<'_, FlattenLayer>
fn as_raw_mut_FlattenLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl FlattenLayerTraitConst for BoxedRefMut<'_, FlattenLayer>
impl FlattenLayerTraitConst for BoxedRefMut<'_, FlattenLayer>
fn as_raw_FlattenLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl FlowWarpLayerTrait for BoxedRefMut<'_, FlowWarpLayer>
impl FlowWarpLayerTrait for BoxedRefMut<'_, FlowWarpLayer>
fn as_raw_mut_FlowWarpLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl FlowWarpLayerTraitConst for BoxedRefMut<'_, FlowWarpLayer>
impl FlowWarpLayerTraitConst for BoxedRefMut<'_, FlowWarpLayer>
fn as_raw_FlowWarpLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl FormattedTrait for BoxedRefMut<'_, Formatted>
impl FormattedTrait for BoxedRefMut<'_, Formatted>
source§impl FormattedTraitConst for BoxedRefMut<'_, Formatted>
impl FormattedTraitConst for BoxedRefMut<'_, Formatted>
fn as_raw_Formatted(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl FormatterTrait for BoxedRefMut<'_, Formatter>
impl FormatterTrait for BoxedRefMut<'_, Formatter>
fn as_raw_mut_Formatter( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl FormatterTraitConst for BoxedRefMut<'_, Formatter>
impl FormatterTraitConst for BoxedRefMut<'_, Formatter>
fn as_raw_Formatter(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn format(&self, mtx: &impl MatTraitConst) -> Result<Ptr<Formatted>>
source§impl<T: Boxed> From<T> for BoxedRefMut<'_, T>
impl<T: Boxed> From<T> for BoxedRefMut<'_, T>
source§impl GRULayerTrait for BoxedRefMut<'_, GRULayer>
impl GRULayerTrait for BoxedRefMut<'_, GRULayer>
fn as_raw_mut_GRULayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl GRULayerTraitConst for BoxedRefMut<'_, GRULayer>
impl GRULayerTraitConst for BoxedRefMut<'_, GRULayer>
fn as_raw_GRULayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl GeneralizedHoughBallardTrait for BoxedRefMut<'_, GeneralizedHoughBallard>
impl GeneralizedHoughBallardTrait for BoxedRefMut<'_, GeneralizedHoughBallard>
fn as_raw_mut_GeneralizedHoughBallard( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl GeneralizedHoughBallardTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>
impl GeneralizedHoughBallardTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>
fn as_raw_GeneralizedHoughBallard( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_levels(&self) -> Result<i32>
fn get_votes_threshold(&self) -> Result<i32>
source§impl GeneralizedHoughGuilTrait for BoxedRefMut<'_, GeneralizedHoughGuil>
impl GeneralizedHoughGuilTrait for BoxedRefMut<'_, GeneralizedHoughGuil>
fn as_raw_mut_GeneralizedHoughGuil( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_xi(&mut self, xi: f64) -> Result<()>
fn set_xi(&mut self, xi: f64) -> Result<()>
Angle difference in degrees between two points in feature.
source§fn set_angle_epsilon(&mut self, angle_epsilon: f64) -> Result<()>
fn set_angle_epsilon(&mut self, angle_epsilon: f64) -> Result<()>
Maximal difference between angles that treated as equal.
source§fn set_min_angle(&mut self, min_angle: f64) -> Result<()>
fn set_min_angle(&mut self, min_angle: f64) -> Result<()>
Minimal rotation angle to detect in degrees.
source§impl GeneralizedHoughGuilTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>
impl GeneralizedHoughGuilTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>
fn as_raw_GeneralizedHoughGuil( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_xi(&self) -> Result<f64>
fn get_levels(&self) -> Result<i32>
fn get_angle_epsilon(&self) -> Result<f64>
fn get_min_angle(&self) -> Result<f64>
fn get_max_angle(&self) -> Result<f64>
fn get_angle_step(&self) -> Result<f64>
fn get_angle_thresh(&self) -> Result<i32>
fn get_min_scale(&self) -> Result<f64>
fn get_max_scale(&self) -> Result<f64>
fn get_scale_step(&self) -> Result<f64>
fn get_scale_thresh(&self) -> Result<i32>
fn get_pos_thresh(&self) -> Result<i32>
source§impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHough>
impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHough>
fn as_raw_mut_GeneralizedHough( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_template(
&mut self,
templ: &impl ToInputArray,
templ_center: Point,
) -> Result<()>
fn set_template( &mut self, templ: &impl ToInputArray, templ_center: Point, ) -> Result<()>
set template to search Read more
source§fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>
fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>
set template to search Read more
source§fn set_template_1(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
templ_center: Point,
) -> Result<()>
fn set_template_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, templ_center: Point, ) -> Result<()>
C++ default parameters Read more
source§fn set_template_def_1(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
) -> Result<()>
fn set_template_def_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, ) -> Result<()>
Note Read more
source§fn detect(
&mut self,
image: &impl ToInputArray,
positions: &mut impl ToOutputArray,
votes: &mut impl ToOutputArray,
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray, ) -> Result<()>
find template on image Read more
source§fn detect_def(
&mut self,
image: &impl ToInputArray,
positions: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, ) -> Result<()>
find template on image Read more
source§fn detect_with_edges(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
positions: &mut impl ToOutputArray,
votes: &mut impl ToOutputArray,
) -> Result<()>
fn detect_with_edges( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray, ) -> Result<()>
C++ default parameters Read more
source§fn detect_with_edges_def(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
positions: &mut impl ToOutputArray,
) -> Result<()>
fn detect_with_edges_def( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, ) -> Result<()>
Note Read more
source§fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>
fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>
Canny high threshold.
source§fn set_min_dist(&mut self, min_dist: f64) -> Result<()>
fn set_min_dist(&mut self, min_dist: f64) -> Result<()>
Minimum distance between the centers of the detected objects.
source§impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHoughBallard>
impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHoughBallard>
fn as_raw_mut_GeneralizedHough( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_template(
&mut self,
templ: &impl ToInputArray,
templ_center: Point,
) -> Result<()>
fn set_template( &mut self, templ: &impl ToInputArray, templ_center: Point, ) -> Result<()>
set template to search Read more
source§fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>
fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>
set template to search Read more
source§fn set_template_1(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
templ_center: Point,
) -> Result<()>
fn set_template_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, templ_center: Point, ) -> Result<()>
C++ default parameters Read more
source§fn set_template_def_1(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
) -> Result<()>
fn set_template_def_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, ) -> Result<()>
Note Read more
source§fn detect(
&mut self,
image: &impl ToInputArray,
positions: &mut impl ToOutputArray,
votes: &mut impl ToOutputArray,
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray, ) -> Result<()>
find template on image Read more
source§fn detect_def(
&mut self,
image: &impl ToInputArray,
positions: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, ) -> Result<()>
find template on image Read more
source§fn detect_with_edges(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
positions: &mut impl ToOutputArray,
votes: &mut impl ToOutputArray,
) -> Result<()>
fn detect_with_edges( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray, ) -> Result<()>
C++ default parameters Read more
source§fn detect_with_edges_def(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
positions: &mut impl ToOutputArray,
) -> Result<()>
fn detect_with_edges_def( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, ) -> Result<()>
Note Read more
source§fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>
fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>
Canny high threshold.
source§fn set_min_dist(&mut self, min_dist: f64) -> Result<()>
fn set_min_dist(&mut self, min_dist: f64) -> Result<()>
Minimum distance between the centers of the detected objects.
source§impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHoughGuil>
impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHoughGuil>
fn as_raw_mut_GeneralizedHough( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_template(
&mut self,
templ: &impl ToInputArray,
templ_center: Point,
) -> Result<()>
fn set_template( &mut self, templ: &impl ToInputArray, templ_center: Point, ) -> Result<()>
set template to search Read more
source§fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>
fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>
set template to search Read more
source§fn set_template_1(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
templ_center: Point,
) -> Result<()>
fn set_template_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, templ_center: Point, ) -> Result<()>
C++ default parameters Read more
source§fn set_template_def_1(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
) -> Result<()>
fn set_template_def_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, ) -> Result<()>
Note Read more
source§fn detect(
&mut self,
image: &impl ToInputArray,
positions: &mut impl ToOutputArray,
votes: &mut impl ToOutputArray,
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray, ) -> Result<()>
find template on image Read more
source§fn detect_def(
&mut self,
image: &impl ToInputArray,
positions: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, ) -> Result<()>
find template on image Read more
source§fn detect_with_edges(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
positions: &mut impl ToOutputArray,
votes: &mut impl ToOutputArray,
) -> Result<()>
fn detect_with_edges( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray, ) -> Result<()>
C++ default parameters Read more
source§fn detect_with_edges_def(
&mut self,
edges: &impl ToInputArray,
dx: &impl ToInputArray,
dy: &impl ToInputArray,
positions: &mut impl ToOutputArray,
) -> Result<()>
fn detect_with_edges_def( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, ) -> Result<()>
Note Read more
source§fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>
fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>
Canny high threshold.
source§fn set_min_dist(&mut self, min_dist: f64) -> Result<()>
fn set_min_dist(&mut self, min_dist: f64) -> Result<()>
Minimum distance between the centers of the detected objects.
source§impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHough>
impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHough>
fn as_raw_GeneralizedHough( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_canny_low_thresh(&self) -> Result<i32>
fn get_canny_high_thresh(&self) -> Result<i32>
fn get_min_dist(&self) -> Result<f64>
fn get_dp(&self) -> Result<f64>
fn get_max_buffer_size(&self) -> Result<i32>
source§impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>
impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>
fn as_raw_GeneralizedHough( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_canny_low_thresh(&self) -> Result<i32>
fn get_canny_high_thresh(&self) -> Result<i32>
fn get_min_dist(&self) -> Result<f64>
fn get_dp(&self) -> Result<f64>
fn get_max_buffer_size(&self) -> Result<i32>
source§impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>
impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>
fn as_raw_GeneralizedHough( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_canny_low_thresh(&self) -> Result<i32>
fn get_canny_high_thresh(&self) -> Result<i32>
fn get_min_dist(&self) -> Result<f64>
fn get_dp(&self) -> Result<f64>
fn get_max_buffer_size(&self) -> Result<i32>
source§impl GpuDataTrait for BoxedRefMut<'_, GpuData>
impl GpuDataTrait for BoxedRefMut<'_, GpuData>
source§impl GpuDataTraitConst for BoxedRefMut<'_, GpuData>
impl GpuDataTraitConst for BoxedRefMut<'_, GpuData>
source§impl GpuMatNDTrait for BoxedRefMut<'_, GpuMatND>
impl GpuMatNDTrait for BoxedRefMut<'_, GpuMatND>
fn as_raw_mut_GpuMatND( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_size(&mut self, val: GpuMatND_SizeArray)
fn set_size(&mut self, val: GpuMatND_SizeArray)
shape of this array
source§fn set_step(&mut self, val: GpuMatND_StepArray)
fn set_step(&mut self, val: GpuMatND_StepArray)
! step values
Their semantics is identical to the semantics of step for Mat.
source§fn create(&mut self, size: GpuMatND_SizeArray, typ: i32) -> Result<()>
fn create(&mut self, size: GpuMatND_SizeArray, typ: i32) -> Result<()>
Allocates GPU memory.
Suppose there is some GPU memory already allocated. In that case, this method may choose to reuse that
GPU memory under the specific condition: it must be of the same size and type, not externally allocated,
the GPU memory is continuous(i.e., isContinuous() is true), and is not a sub-matrix of another GpuMatND
(i.e., isSubmatrix() is false). In other words, this method guarantees that the GPU memory allocated by
this method is always continuous and is not a sub-region of another GpuMatND.
fn release(&mut self) -> Result<()>
fn swap(&mut self, m: &mut impl GpuMatNDTrait)
source§fn ranges_mut(
&mut self,
ranges: &Vector<Range>,
) -> Result<BoxedRefMut<'_, GpuMatND>>
fn ranges_mut( &mut self, ranges: &Vector<Range>, ) -> Result<BoxedRefMut<'_, GpuMatND>>
Extracts a sub-matrix.
The operator makes a new header for the specified sub-array of *this.
The operator is an O(1) operation, that is, no matrix data is copied. Read more
source§fn create_gpu_mat_header_mut(
&mut self,
idx: GpuMatND_IndexArray,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRefMut<'_, GpuMat>>
fn create_gpu_mat_header_mut( &mut self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRefMut<'_, GpuMat>>
Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
source§fn create_gpu_mat_header_mut_1(&mut self) -> Result<BoxedRefMut<'_, GpuMat>>
fn create_gpu_mat_header_mut_1(&mut self) -> Result<BoxedRefMut<'_, GpuMat>>
@overload
Creates a GpuMat header if this GpuMatND is effectively 2D. Read more
source§fn rowscols_mut(
&mut self,
idx: GpuMatND_IndexArray,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRefMut<'_, GpuMat>>
fn rowscols_mut( &mut self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRefMut<'_, GpuMat>>
Extracts a 2D plane part of an n-dim matrix.
It differs from createGpuMatHeader(IndexArray, Range, Range) in that it clones a part of this
GpuMatND to the returned GpuMat. Read more
fn set(&mut self, unnamed: &impl GpuMatNDTraitConst)
fn set_1(&mut self, unnamed: GpuMatND)
fn upload(&mut self, src: &impl ToInputArray) -> Result<()>
fn upload_1( &mut self, src: &impl ToInputArray, stream: &mut impl StreamTrait, ) -> Result<()>
source§impl GpuMatNDTraitConst for BoxedRefMut<'_, GpuMatND>
impl GpuMatNDTraitConst for BoxedRefMut<'_, GpuMatND>
fn as_raw_GpuMatND(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn size(&self) -> GpuMatND_SizeArray
fn size(&self) -> GpuMatND_SizeArray
shape of this array
source§fn step(&self) -> GpuMatND_StepArray
fn step(&self) -> GpuMatND_StepArray
! step values
Their semantics is identical to the semantics of step for Mat.
source§fn try_clone(&self) -> Result<GpuMatND>
fn try_clone(&self) -> Result<GpuMatND>
Creates a full copy of the array and the underlying data.
The method creates a full copy of the array. It mimics the behavior of Mat::clone(), i.e.
the original step is not taken into account. So, the array copy is a continuous array
occupying total()*elemSize() bytes.
source§fn clone(&self, stream: &mut impl StreamTrait) -> Result<GpuMatND>
fn clone(&self, stream: &mut impl StreamTrait) -> Result<GpuMatND>
Creates a full copy of the array and the underlying data.
The method creates a full copy of the array. It mimics the behavior of Mat::clone(), i.e.
the original step is not taken into account. So, the array copy is a continuous array
occupying total()*elemSize() bytes. Read more
source§fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, GpuMatND>>
fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, GpuMatND>>
Extracts a sub-matrix.
The operator makes a new header for the specified sub-array of *this.
The operator is an O(1) operation, that is, no matrix data is copied. Read more
source§fn create_gpu_mat_header(
&self,
idx: GpuMatND_IndexArray,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRef<'_, GpuMat>>
fn create_gpu_mat_header( &self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRef<'_, GpuMat>>
Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
source§fn create_gpu_mat_header_1(&self) -> Result<BoxedRef<'_, GpuMat>>
fn create_gpu_mat_header_1(&self) -> Result<BoxedRef<'_, GpuMat>>
Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
source§fn rowscols(
&self,
idx: GpuMatND_IndexArray,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRef<'_, GpuMat>>
fn rowscols( &self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRef<'_, GpuMat>>
Extracts a 2D plane part of an n-dim matrix.
It differs from createGpuMatHeader(IndexArray, Range, Range) in that it clones a part of this
GpuMatND to the returned GpuMat. Read more
source§fn to_gpu_mat(&self) -> Result<GpuMat>
fn to_gpu_mat(&self) -> Result<GpuMat>
Extracts a 2D plane part of an n-dim matrix if this GpuMatND is effectively 2D.
It differs from createGpuMatHeader() in that it clones a part of this GpuMatND. Read more
fn download(&self, dst: &mut impl ToOutputArray) -> Result<()>
fn download_1( &self, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
source§fn is_continuous(&self) -> Result<bool>
fn is_continuous(&self) -> Result<bool>
returns true iff the GpuMatND data is continuous
(i.e. when there are no gaps between successive rows)
source§fn is_submatrix(&self) -> Result<bool>
fn is_submatrix(&self) -> Result<bool>
returns true if the matrix is a sub-matrix of another matrix
source§fn elem_size1(&self) -> Result<size_t>
fn elem_size1(&self) -> Result<size_t>
returns the size of element channel in bytes
source§fn external(&self) -> Result<bool>
fn external(&self) -> Result<bool>
returns true if not empty and points to external(user-allocated) gpu memory
source§fn get_device_ptr(&self) -> Result<*mut u8>
fn get_device_ptr(&self) -> Result<*mut u8>
returns pointer to the first byte of the GPU memory
source§fn total_mem_size(&self) -> Result<size_t>
fn total_mem_size(&self) -> Result<size_t>
returns the size of underlying memory in bytes
source§impl GpuMatTrait for BoxedRefMut<'_, GpuMat>
impl GpuMatTrait for BoxedRefMut<'_, GpuMat>
fn as_raw_mut_GpuMat( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_step(&mut self, val: size_t)
fn set_step(&mut self, val: size_t)
a distance between successive rows in bytes; includes the gap if any
source§fn refcount_mut(&mut self) -> *mut i32
fn refcount_mut(&mut self) -> *mut i32
pointer to the reference counter;
when GpuMat points to user-allocated data, the pointer is NULL
source§unsafe fn set_refcount(&mut self, val: *const i32)
unsafe fn set_refcount(&mut self, val: *const i32)
pointer to the reference counter;
when GpuMat points to user-allocated data, the pointer is NULL
source§fn datastart_mut(&mut self) -> *mut u8
fn datastart_mut(&mut self) -> *mut u8
helper fields used in locateROI and adjustROI
source§unsafe fn set_datastart(&mut self, val: *const u8)
unsafe fn set_datastart(&mut self, val: *const u8)
helper fields used in locateROI and adjustROI
source§fn allocator(&mut self) -> AbstractRefMut<'_, GpuMat_Allocator>
fn allocator(&mut self) -> AbstractRefMut<'_, GpuMat_Allocator>
allocator
source§unsafe fn set_allocator(&mut self, val: &impl GpuMat_AllocatorTraitConst)
unsafe fn set_allocator(&mut self, val: &impl GpuMat_AllocatorTraitConst)
allocator
source§fn create(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>
fn create(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>
allocates new GpuMat data unless the GpuMat already has specified size and type
fn create_1(&mut self, size: Size, typ: i32) -> Result<()>
source§fn release(&mut self) -> Result<()>
fn release(&mut self) -> Result<()>
decreases reference counter, deallocate the data when reference counter reaches 0
source§fn upload(&mut self, arr: &impl ToInputArray) -> Result<()>
fn upload(&mut self, arr: &impl ToInputArray) -> Result<()>
Performs data upload to GpuMat (Blocking call) Read more
source§fn upload_async(
&mut self,
arr: &impl ToInputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn upload_async( &mut self, arr: &impl ToInputArray, stream: &mut impl StreamTrait, ) -> Result<()>
Performs data upload to GpuMat (Non-Blocking call) Read more
source§fn set_to(&mut self, s: Scalar) -> Result<GpuMat>
fn set_to(&mut self, s: Scalar) -> Result<GpuMat>
sets some of the GpuMat elements to s (Blocking call)
source§fn set_to_1(
&mut self,
s: Scalar,
stream: &mut impl StreamTrait,
) -> Result<GpuMat>
fn set_to_1( &mut self, s: Scalar, stream: &mut impl StreamTrait, ) -> Result<GpuMat>
sets some of the GpuMat elements to s (Non-Blocking call)
source§fn set_to_2(&mut self, s: Scalar, mask: &impl ToInputArray) -> Result<GpuMat>
fn set_to_2(&mut self, s: Scalar, mask: &impl ToInputArray) -> Result<GpuMat>
sets some of the GpuMat elements to s, according to the mask (Blocking call)
source§fn set_to_3(
&mut self,
s: Scalar,
mask: &impl ToInputArray,
stream: &mut impl StreamTrait,
) -> Result<GpuMat>
fn set_to_3( &mut self, s: Scalar, mask: &impl ToInputArray, stream: &mut impl StreamTrait, ) -> Result<GpuMat>
sets some of the GpuMat elements to s, according to the mask (Non-Blocking call)
source§fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, GpuMat>>
fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, GpuMat>>
returns a new GpuMat header for the specified row
source§fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, GpuMat>>
fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, GpuMat>>
returns a new GpuMat header for the specified column
source§fn row_bounds_mut(
&mut self,
startrow: i32,
endrow: i32,
) -> Result<BoxedRefMut<'_, GpuMat>>
fn row_bounds_mut( &mut self, startrow: i32, endrow: i32, ) -> Result<BoxedRefMut<'_, GpuMat>>
… for the specified row span
fn row_range_mut( &mut self, r: impl RangeTrait, ) -> Result<BoxedRefMut<'_, GpuMat>>
source§fn col_bounds_mut(
&mut self,
startcol: i32,
endcol: i32,
) -> Result<BoxedRefMut<'_, GpuMat>>
fn col_bounds_mut( &mut self, startcol: i32, endcol: i32, ) -> Result<BoxedRefMut<'_, GpuMat>>
… for the specified column span
fn col_range_mut( &mut self, r: impl RangeTrait, ) -> Result<BoxedRefMut<'_, GpuMat>>
source§fn rowscols_mut(
&mut self,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRefMut<'_, GpuMat>>
fn rowscols_mut( &mut self, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRefMut<'_, GpuMat>>
extracts a rectangular sub-GpuMat (this is a generalized form of row, rowRange etc.)
fn roi_mut(&mut self, roi: Rect) -> Result<BoxedRefMut<'_, GpuMat>>
source§fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, GpuMat>>
fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, GpuMat>>
creates alternative GpuMat header for the same data, with different
number of channels and/or different number of rows Read more
source§fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, GpuMat>>
fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, GpuMat>>
creates alternative GpuMat header for the same data, with different
number of channels and/or different number of rows Read more
source§fn adjust_roi(
&mut self,
dtop: i32,
dbottom: i32,
dleft: i32,
dright: i32,
) -> Result<GpuMat>
fn adjust_roi( &mut self, dtop: i32, dbottom: i32, dleft: i32, dright: i32, ) -> Result<GpuMat>
moves/resizes the current GpuMat ROI inside the parent GpuMat
source§fn update_continuity_flag(&mut self) -> Result<()>
fn update_continuity_flag(&mut self) -> Result<()>
internal use method: updates the continuity flag
source§impl GpuMatTraitConst for BoxedRefMut<'_, GpuMat>
impl GpuMatTraitConst for BoxedRefMut<'_, GpuMat>
fn as_raw_GpuMat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn refcount(&self) -> *const i32
fn refcount(&self) -> *const i32
pointer to the reference counter;
when GpuMat points to user-allocated data, the pointer is NULL
fn dataend(&self) -> *const u8
source§fn download(&self, dst: &mut impl ToOutputArray) -> Result<()>
fn download(&self, dst: &mut impl ToOutputArray) -> Result<()>
Performs data download from GpuMat (Blocking call) Read more
source§fn download_async(
&self,
dst: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn download_async( &self, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
Performs data download from GpuMat (Non-Blocking call) Read more
source§fn try_clone(&self) -> Result<GpuMat>
fn try_clone(&self) -> Result<GpuMat>
returns deep copy of the GpuMat, i.e. the data is copied
source§fn copy_to(&self, dst: &mut impl ToOutputArray) -> Result<()>
fn copy_to(&self, dst: &mut impl ToOutputArray) -> Result<()>
copies the GpuMat content to device memory (Blocking call)
source§fn copy_to_stream(
&self,
dst: &mut impl ToOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn copy_to_stream( &self, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
copies the GpuMat content to device memory (Non-Blocking call)
source§fn copy_to_mask(
&self,
dst: &mut impl ToOutputArray,
mask: &impl ToInputArray,
) -> Result<()>
fn copy_to_mask( &self, dst: &mut impl ToOutputArray, mask: &impl ToInputArray, ) -> Result<()>
copies those GpuMat elements to “m” that are marked with non-zero mask elements (Blocking call)
source§fn copy_to_mask_stream(
&self,
dst: &mut impl ToOutputArray,
mask: &impl ToInputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn copy_to_mask_stream( &self, dst: &mut impl ToOutputArray, mask: &impl ToInputArray, stream: &mut impl StreamTrait, ) -> Result<()>
copies those GpuMat elements to “m” that are marked with non-zero mask elements (Non-Blocking call)
source§fn convert_to(&self, dst: &mut impl ToOutputArray, rtype: i32) -> Result<()>
fn convert_to(&self, dst: &mut impl ToOutputArray, rtype: i32) -> Result<()>
converts GpuMat to another datatype (Blocking call)
source§fn convert_to_1(
&self,
dst: &mut impl ToOutputArray,
rtype: i32,
stream: &mut impl StreamTrait,
) -> Result<()>
fn convert_to_1( &self, dst: &mut impl ToOutputArray, rtype: i32, stream: &mut impl StreamTrait, ) -> Result<()>
converts GpuMat to another datatype (Non-Blocking call)
source§fn convert_to_2(
&self,
dst: &mut impl ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64,
) -> Result<()>
fn convert_to_2( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64, ) -> Result<()>
converts GpuMat to another datatype with scaling (Blocking call) Read more
source§fn convert_to_def(
&self,
dst: &mut impl ToOutputArray,
rtype: i32,
alpha: f64,
) -> Result<()>
fn convert_to_def( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64, ) -> Result<()>
converts GpuMat to another datatype with scaling (Blocking call) Read more
source§fn convert_to_3(
&self,
dst: &mut impl ToOutputArray,
rtype: i32,
alpha: f64,
stream: &mut impl StreamTrait,
) -> Result<()>
fn convert_to_3( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64, stream: &mut impl StreamTrait, ) -> Result<()>
converts GpuMat to another datatype with scaling (Non-Blocking call)
source§fn convert_to_4(
&self,
dst: &mut impl ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64,
stream: &mut impl StreamTrait,
) -> Result<()>
fn convert_to_4( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64, stream: &mut impl StreamTrait, ) -> Result<()>
converts GpuMat to another datatype with scaling (Non-Blocking call)
source§fn assign_to(&self, m: &mut impl GpuMatTrait, typ: i32) -> Result<()>
fn assign_to(&self, m: &mut impl GpuMatTrait, typ: i32) -> Result<()>
C++ default parameters Read more
source§fn assign_to_def(&self, m: &mut impl GpuMatTrait) -> Result<()>
fn assign_to_def(&self, m: &mut impl GpuMatTrait) -> Result<()>
Note Read more
source§fn row(&self, y: i32) -> Result<BoxedRef<'_, GpuMat>>
fn row(&self, y: i32) -> Result<BoxedRef<'_, GpuMat>>
returns a new GpuMat header for the specified row
source§fn col(&self, x: i32) -> Result<BoxedRef<'_, GpuMat>>
fn col(&self, x: i32) -> Result<BoxedRef<'_, GpuMat>>
returns a new GpuMat header for the specified column
source§fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, GpuMat>>
fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, GpuMat>>
… for the specified row span
fn row_range(&self, r: impl RangeTrait) -> Result<BoxedRef<'_, GpuMat>>
source§fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, GpuMat>>
fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, GpuMat>>
… for the specified column span
fn col_range(&self, r: impl RangeTrait) -> Result<BoxedRef<'_, GpuMat>>
source§fn rowscols(
&self,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRef<'_, GpuMat>>
fn rowscols( &self, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRef<'_, GpuMat>>
extracts a rectangular sub-GpuMat (this is a generalized form of row, rowRange etc.)
fn roi(&self, roi: Rect) -> Result<BoxedRef<'_, GpuMat>>
source§fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, GpuMat>>
fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, GpuMat>>
creates alternative GpuMat header for the same data, with different
number of channels and/or different number of rows Read more
source§fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, GpuMat>>
fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, GpuMat>>
creates alternative GpuMat header for the same data, with different
number of channels and/or different number of rows Read more
source§fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
locates GpuMat header within a parent GpuMat
source§fn is_continuous(&self) -> Result<bool>
fn is_continuous(&self) -> Result<bool>
returns true iff the GpuMat data is continuous
(i.e. when there are no gaps between successive rows)
source§fn elem_size1(&self) -> Result<size_t>
fn elem_size1(&self) -> Result<size_t>
returns the size of element channel in bytes
source§fn size(&self) -> Result<Size>
fn size(&self) -> Result<Size>
returns GpuMat size : width == number of columns, height == number of rows
fn cuda_ptr(&self) -> Result<*mut c_void>
source§impl GpuMat_AllocatorTrait for BoxedRefMut<'_, GpuMat_Allocator>
impl GpuMat_AllocatorTrait for BoxedRefMut<'_, GpuMat_Allocator>
source§impl GpuMat_AllocatorTraitConst for BoxedRefMut<'_, GpuMat_Allocator>
impl GpuMat_AllocatorTraitConst for BoxedRefMut<'_, GpuMat_Allocator>
fn as_raw_GpuMat_Allocator( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl HammingTrait for BoxedRefMut<'_, Hamming>
impl HammingTrait for BoxedRefMut<'_, Hamming>
fn as_raw_mut_Hamming( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl HammingTraitConst for BoxedRefMut<'_, Hamming>
impl HammingTraitConst for BoxedRefMut<'_, Hamming>
fn as_raw_Hamming(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl HostMemTrait for BoxedRefMut<'_, HostMem>
impl HostMemTrait for BoxedRefMut<'_, HostMem>
fn as_raw_mut_HostMem( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_flags(&mut self, val: i32)
fn set_rows(&mut self, val: i32)
fn set_cols(&mut self, val: i32)
fn set_step(&mut self, val: size_t)
fn data_mut(&mut self) -> *mut u8
unsafe fn set_data(&mut self, val: *const u8)
fn refcount_mut(&mut self) -> *mut i32
unsafe fn set_refcount(&mut self, val: *const i32)
fn datastart_mut(&mut self) -> *mut u8
unsafe fn set_datastart(&mut self, val: *const u8)
fn set_alloc_type(&mut self, val: HostMem_AllocType)
fn set(&mut self, m: &impl HostMemTraitConst) -> Result<()>
source§fn create(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>
fn create(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>
allocates new matrix data unless the matrix already has specified size and type.
fn create_1(&mut self, size: Size, typ: i32) -> Result<()>
source§impl HostMemTraitConst for BoxedRefMut<'_, HostMem>
impl HostMemTraitConst for BoxedRefMut<'_, HostMem>
fn as_raw_HostMem(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn flags(&self) -> i32
fn rows(&self) -> i32
fn cols(&self) -> i32
fn step(&self) -> size_t
fn data(&self) -> *const u8
fn refcount(&self) -> *const i32
fn datastart(&self) -> *const u8
fn dataend(&self) -> *const u8
fn alloc_type(&self) -> HostMem_AllocType
source§fn try_clone(&self) -> Result<HostMem>
fn try_clone(&self) -> Result<HostMem>
returns deep copy of the matrix, i.e. the data is copied
source§fn reshape(&self, cn: i32, rows: i32) -> Result<HostMem>
fn reshape(&self, cn: i32, rows: i32) -> Result<HostMem>
creates alternative HostMem header for the same data, with different
number of channels and/or different number of rows Read more
source§fn reshape_def(&self, cn: i32) -> Result<HostMem>
fn reshape_def(&self, cn: i32) -> Result<HostMem>
creates alternative HostMem header for the same data, with different
number of channels and/or different number of rows Read more
source§fn create_mat_header(&self) -> Result<Mat>
fn create_mat_header(&self) -> Result<Mat>
returns matrix header with disabled reference counting for HostMem data.
source§fn create_gpu_mat_header(&self) -> Result<GpuMat>
fn create_gpu_mat_header(&self) -> Result<GpuMat>
Maps CPU memory to GPU address space and creates the cuda::GpuMat header without reference counting
for it. Read more
fn is_continuous(&self) -> Result<bool>
fn elem_size(&self) -> Result<size_t>
fn elem_size1(&self) -> Result<size_t>
fn typ(&self) -> Result<i32>
fn depth(&self) -> Result<i32>
fn channels(&self) -> Result<i32>
fn step1(&self) -> Result<size_t>
fn size(&self) -> Result<Size>
fn empty(&self) -> Result<bool>
source§impl Image2DTrait for BoxedRefMut<'_, Image2D>
impl Image2DTrait for BoxedRefMut<'_, Image2D>
source§impl Image2DTraitConst for BoxedRefMut<'_, Image2D>
impl Image2DTraitConst for BoxedRefMut<'_, Image2D>
source§impl InnerProductLayerInt8Trait for BoxedRefMut<'_, InnerProductLayerInt8>
impl InnerProductLayerInt8Trait for BoxedRefMut<'_, InnerProductLayerInt8>
fn as_raw_mut_InnerProductLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_output_zp(&mut self, val: i32)
source§impl InnerProductLayerTrait for BoxedRefMut<'_, InnerProductLayer>
impl InnerProductLayerTrait for BoxedRefMut<'_, InnerProductLayer>
source§impl InnerProductLayerTrait for BoxedRefMut<'_, InnerProductLayerInt8>
impl InnerProductLayerTrait for BoxedRefMut<'_, InnerProductLayerInt8>
source§impl InnerProductLayerTraitConst for BoxedRefMut<'_, InnerProductLayer>
impl InnerProductLayerTraitConst for BoxedRefMut<'_, InnerProductLayer>
source§impl IntelligentScissorsMBTrait for BoxedRefMut<'_, IntelligentScissorsMB>
impl IntelligentScissorsMBTrait for BoxedRefMut<'_, IntelligentScissorsMB>
fn as_raw_mut_IntelligentScissorsMB( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_weights(
&mut self,
weight_non_edge: f32,
weight_gradient_direction: f32,
weight_gradient_magnitude: f32,
) -> Result<IntelligentScissorsMB>
fn set_weights( &mut self, weight_non_edge: f32, weight_gradient_direction: f32, weight_gradient_magnitude: f32, ) -> Result<IntelligentScissorsMB>
Specify weights of feature functions Read more
source§fn set_gradient_magnitude_max_limit(
&mut self,
gradient_magnitude_threshold_max: f32,
) -> Result<IntelligentScissorsMB>
fn set_gradient_magnitude_max_limit( &mut self, gradient_magnitude_threshold_max: f32, ) -> Result<IntelligentScissorsMB>
Specify gradient magnitude max value threshold Read more
source§fn set_gradient_magnitude_max_limit_def(
&mut self,
) -> Result<IntelligentScissorsMB>
fn set_gradient_magnitude_max_limit_def( &mut self, ) -> Result<IntelligentScissorsMB>
Specify gradient magnitude max value threshold Read more
source§fn set_edge_feature_zero_crossing_parameters(
&mut self,
gradient_magnitude_min_value: f32,
) -> Result<IntelligentScissorsMB>
fn set_edge_feature_zero_crossing_parameters( &mut self, gradient_magnitude_min_value: f32, ) -> Result<IntelligentScissorsMB>
Switch to “Laplacian Zero-Crossing” edge feature extractor and specify its parameters Read more
source§fn set_edge_feature_zero_crossing_parameters_def(
&mut self,
) -> Result<IntelligentScissorsMB>
fn set_edge_feature_zero_crossing_parameters_def( &mut self, ) -> Result<IntelligentScissorsMB>
Switch to “Laplacian Zero-Crossing” edge feature extractor and specify its parameters Read more
source§fn set_edge_feature_canny_parameters(
&mut self,
threshold1: f64,
threshold2: f64,
aperture_size: i32,
l2gradient: bool,
) -> Result<IntelligentScissorsMB>
fn set_edge_feature_canny_parameters( &mut self, threshold1: f64, threshold2: f64, aperture_size: i32, l2gradient: bool, ) -> Result<IntelligentScissorsMB>
Switch edge feature extractor to use Canny edge detector Read more
source§fn set_edge_feature_canny_parameters_def(
&mut self,
threshold1: f64,
threshold2: f64,
) -> Result<IntelligentScissorsMB>
fn set_edge_feature_canny_parameters_def( &mut self, threshold1: f64, threshold2: f64, ) -> Result<IntelligentScissorsMB>
Switch edge feature extractor to use Canny edge detector Read more
source§fn apply_image(
&mut self,
image: &impl ToInputArray,
) -> Result<IntelligentScissorsMB>
fn apply_image( &mut self, image: &impl ToInputArray, ) -> Result<IntelligentScissorsMB>
Specify input image and extract image features Read more
source§fn apply_image_features(
&mut self,
non_edge: &impl ToInputArray,
gradient_direction: &impl ToInputArray,
gradient_magnitude: &impl ToInputArray,
image: &impl ToInputArray,
) -> Result<IntelligentScissorsMB>
fn apply_image_features( &mut self, non_edge: &impl ToInputArray, gradient_direction: &impl ToInputArray, gradient_magnitude: &impl ToInputArray, image: &impl ToInputArray, ) -> Result<IntelligentScissorsMB>
Specify custom features of imput image Read more
source§fn apply_image_features_def(
&mut self,
non_edge: &impl ToInputArray,
gradient_direction: &impl ToInputArray,
gradient_magnitude: &impl ToInputArray,
) -> Result<IntelligentScissorsMB>
fn apply_image_features_def( &mut self, non_edge: &impl ToInputArray, gradient_direction: &impl ToInputArray, gradient_magnitude: &impl ToInputArray, ) -> Result<IntelligentScissorsMB>
Specify custom features of imput image Read more
source§impl IntelligentScissorsMBTraitConst for BoxedRefMut<'_, IntelligentScissorsMB>
impl IntelligentScissorsMBTraitConst for BoxedRefMut<'_, IntelligentScissorsMB>
fn as_raw_IntelligentScissorsMB( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_contour(
&self,
target_pt: Point,
contour: &mut impl ToOutputArray,
backward: bool,
) -> Result<()>
fn get_contour( &self, target_pt: Point, contour: &mut impl ToOutputArray, backward: bool, ) -> Result<()>
Extracts optimal contour for the given target point on the image Read more
source§fn get_contour_def(
&self,
target_pt: Point,
contour: &mut impl ToOutputArray,
) -> Result<()>
fn get_contour_def( &self, target_pt: Point, contour: &mut impl ToOutputArray, ) -> Result<()>
Extracts optimal contour for the given target point on the image Read more
source§impl InterpLayerTrait for BoxedRefMut<'_, InterpLayer>
impl InterpLayerTrait for BoxedRefMut<'_, InterpLayer>
fn as_raw_mut_InterpLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl InterpLayerTraitConst for BoxedRefMut<'_, InterpLayer>
impl InterpLayerTraitConst for BoxedRefMut<'_, InterpLayer>
fn as_raw_InterpLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl KernelArgTrait for BoxedRefMut<'_, KernelArg>
impl KernelArgTrait for BoxedRefMut<'_, KernelArg>
fn as_raw_mut_KernelArg( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_flags(&mut self, val: i32)
fn m(&mut self) -> UMat
fn set_m(&mut self, val: &impl UMatTraitConst)
fn set_sz(&mut self, val: size_t)
fn set_wscale(&mut self, val: i32)
fn set_iwscale(&mut self, val: i32)
source§impl KernelArgTraitConst for BoxedRefMut<'_, KernelArg>
impl KernelArgTraitConst for BoxedRefMut<'_, KernelArg>
source§impl KernelTrait for BoxedRefMut<'_, Kernel>
impl KernelTrait for BoxedRefMut<'_, Kernel>
fn as_raw_mut_Kernel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, k: &impl KernelTraitConst) -> Result<()>
fn set_1(&mut self, k: Kernel)
fn create(&mut self, kname: &str, prog: &impl ProgramTraitConst) -> Result<bool>
source§fn create_ext(
&mut self,
kname: &str,
prog: &impl ProgramSourceTraitConst,
buildopts: &str,
errmsg: &mut String,
) -> Result<bool>
fn create_ext( &mut self, kname: &str, prog: &impl ProgramSourceTraitConst, buildopts: &str, errmsg: &mut String, ) -> Result<bool>
C++ default parameters Read more
source§fn create_ext_def(
&mut self,
kname: &str,
prog: &impl ProgramSourceTraitConst,
buildopts: &str,
) -> Result<bool>
fn create_ext_def( &mut self, kname: &str, prog: &impl ProgramSourceTraitConst, buildopts: &str, ) -> Result<bool>
Note Read more
unsafe fn set_2( &mut self, i: i32, value: *const c_void, sz: size_t, ) -> Result<i32>
fn set_3(&mut self, i: i32, image_2d: &impl Image2DTraitConst) -> Result<i32>
fn set_umat(&mut self, i: i32, m: &impl UMatTraitConst) -> Result<i32>
fn set_kernel_arg( &mut self, i: i32, arg: &impl KernelArgTraitConst, ) -> Result<i32>
source§fn run(
&mut self,
dims: i32,
globalsize: &mut [size_t],
localsize: &mut [size_t],
sync: bool,
q: &impl QueueTraitConst,
) -> Result<bool>
fn run( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool, q: &impl QueueTraitConst, ) -> Result<bool>
Run the OpenCL kernel (globalsize value may be adjusted) Read more
source§fn run_def(
&mut self,
dims: i32,
globalsize: &mut [size_t],
localsize: &mut [size_t],
sync: bool,
) -> Result<bool>
fn run_def( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool, ) -> Result<bool>
Run the OpenCL kernel (globalsize value may be adjusted) Read more
source§fn run_(
&mut self,
dims: i32,
globalsize: &mut [size_t],
localsize: &mut [size_t],
sync: bool,
q: &impl QueueTraitConst,
) -> Result<bool>
fn run_( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool, q: &impl QueueTraitConst, ) -> Result<bool>
Run the OpenCL kernel Read more
source§fn run__def(
&mut self,
dims: i32,
globalsize: &mut [size_t],
localsize: &mut [size_t],
sync: bool,
) -> Result<bool>
fn run__def( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool, ) -> Result<bool>
Run the OpenCL kernel Read more
source§fn run_task(&mut self, sync: bool, q: &impl QueueTraitConst) -> Result<bool>
fn run_task(&mut self, sync: bool, q: &impl QueueTraitConst) -> Result<bool>
C++ default parameters Read more
source§fn run_profiling(
&mut self,
dims: i32,
globalsize: &mut [size_t],
localsize: &mut [size_t],
q: &impl QueueTraitConst,
) -> Result<i64>
fn run_profiling( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], q: &impl QueueTraitConst, ) -> Result<i64>
Similar to synchronized run_() call with returning of kernel execution time Read more
source§impl KernelTraitConst for BoxedRefMut<'_, Kernel>
impl KernelTraitConst for BoxedRefMut<'_, Kernel>
fn as_raw_Kernel(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn empty(&self) -> Result<bool>
fn work_group_size(&self) -> Result<size_t>
fn prefered_work_group_size_multiple(&self) -> Result<size_t>
fn compile_work_group_size(&self, wsz: &mut [size_t]) -> Result<bool>
fn local_mem_size(&self) -> Result<size_t>
fn ptr(&self) -> Result<*mut c_void>
source§impl KeyPointTrait for BoxedRefMut<'_, KeyPoint>
impl KeyPointTrait for BoxedRefMut<'_, KeyPoint>
fn as_raw_mut_KeyPoint( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_angle(&mut self, val: f32)
fn set_angle(&mut self, val: f32)
computed orientation of the keypoint (-1 if not applicable);
it’s in [0,360) degrees and measured relative to
image coordinate system, ie in clockwise.
source§fn set_response(&mut self, val: f32)
fn set_response(&mut self, val: f32)
the response by which the most strong keypoints have been selected. Can be used for the further sorting or subsampling
source§fn set_octave(&mut self, val: i32)
fn set_octave(&mut self, val: i32)
octave (pyramid layer) from which the keypoint has been extracted
source§fn set_class_id(&mut self, val: i32)
fn set_class_id(&mut self, val: i32)
object class (if the keypoints need to be clustered by an object they belong to)
source§impl KeyPointTraitConst for BoxedRefMut<'_, KeyPoint>
impl KeyPointTraitConst for BoxedRefMut<'_, KeyPoint>
fn as_raw_KeyPoint(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn angle(&self) -> f32
fn angle(&self) -> f32
computed orientation of the keypoint (-1 if not applicable);
it’s in [0,360) degrees and measured relative to
image coordinate system, ie in clockwise.
source§fn response(&self) -> f32
fn response(&self) -> f32
the response by which the most strong keypoints have been selected. Can be used for the further sorting or subsampling
source§fn class_id(&self) -> i32
fn class_id(&self) -> i32
object class (if the keypoints need to be clustered by an object they belong to)
fn hash(&self) -> Result<size_t>
source§impl KeypointsModelTrait for BoxedRefMut<'_, KeypointsModel>
impl KeypointsModelTrait for BoxedRefMut<'_, KeypointsModel>
fn as_raw_mut_KeypointsModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn estimate(
&mut self,
frame: &impl ToInputArray,
thresh: f32,
) -> Result<Vector<Point2f>>
fn estimate( &mut self, frame: &impl ToInputArray, thresh: f32, ) -> Result<Vector<Point2f>>
Given the @p input frame, create input blob, run net Read more
source§fn estimate_def(&mut self, frame: &impl ToInputArray) -> Result<Vector<Point2f>>
fn estimate_def(&mut self, frame: &impl ToInputArray) -> Result<Vector<Point2f>>
Given the @p input frame, create input blob, run net Read more
source§impl KeypointsModelTraitConst for BoxedRefMut<'_, KeypointsModel>
impl KeypointsModelTraitConst for BoxedRefMut<'_, KeypointsModel>
fn as_raw_KeypointsModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl LDATrait for BoxedRefMut<'_, LDA>
impl LDATrait for BoxedRefMut<'_, LDA>
fn as_raw_mut_LDA( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn load(&mut self, filename: &str) -> Result<()>
fn load(&mut self, filename: &str) -> Result<()>
Deserializes this object from a given filename.
source§fn load_1(&mut self, node: &impl FileStorageTraitConst) -> Result<()>
fn load_1(&mut self, node: &impl FileStorageTraitConst) -> Result<()>
Deserializes this object from a given cv::FileStorage.
source§fn compute(
&mut self,
src: &impl ToInputArray,
labels: &impl ToInputArray,
) -> Result<()>
fn compute( &mut self, src: &impl ToInputArray, labels: &impl ToInputArray, ) -> Result<()>
Compute the discriminants for data in src (row aligned) and labels.
source§fn project(&mut self, src: &impl ToInputArray) -> Result<Mat>
fn project(&mut self, src: &impl ToInputArray) -> Result<Mat>
Projects samples into the LDA subspace.
src may be one or more row aligned samples.
source§fn reconstruct(&mut self, src: &impl ToInputArray) -> Result<Mat>
fn reconstruct(&mut self, src: &impl ToInputArray) -> Result<Mat>
Reconstructs projections from the LDA subspace.
src may be one or more row aligned projections.
source§impl LDATraitConst for BoxedRefMut<'_, LDA>
impl LDATraitConst for BoxedRefMut<'_, LDA>
fn as_raw_LDA(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn save_1(&self, fs: &mut impl FileStorageTrait) -> Result<()>
fn save_1(&self, fs: &mut impl FileStorageTrait) -> Result<()>
Serializes this object to a given cv::FileStorage.
source§fn eigenvectors(&self) -> Result<Mat>
fn eigenvectors(&self) -> Result<Mat>
Returns the eigenvectors of this LDA.
source§fn eigenvalues(&self) -> Result<Mat>
fn eigenvalues(&self) -> Result<Mat>
Returns the eigenvalues of this LDA.
source§impl LRNLayerTrait for BoxedRefMut<'_, LRNLayer>
impl LRNLayerTrait for BoxedRefMut<'_, LRNLayer>
fn as_raw_mut_LRNLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_type(&mut self, val: i32)
fn set_size(&mut self, val: i32)
fn set_alpha(&mut self, val: f32)
fn set_beta(&mut self, val: f32)
fn set_bias(&mut self, val: f32)
fn set_norm_by_size(&mut self, val: bool)
source§impl LRNLayerTraitConst for BoxedRefMut<'_, LRNLayer>
impl LRNLayerTraitConst for BoxedRefMut<'_, LRNLayer>
source§impl LSTMLayerTrait for BoxedRefMut<'_, LSTMLayer>
impl LSTMLayerTrait for BoxedRefMut<'_, LSTMLayer>
fn as_raw_mut_LSTMLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_weights(
&mut self,
wh: &impl MatTraitConst,
wx: &impl MatTraitConst,
b: &impl MatTraitConst,
) -> Result<()>
fn set_weights( &mut self, wh: &impl MatTraitConst, wx: &impl MatTraitConst, b: &impl MatTraitConst, ) -> Result<()>
👎Deprecated: Use LayerParams::blobs instead.
Deprecated: Use LayerParams::blobs instead.
Set trained weights for LSTM layer. Read more
source§fn set_out_shape(&mut self, out_tail_shape: &MatShape) -> Result<()>
fn set_out_shape(&mut self, out_tail_shape: &MatShape) -> Result<()>
Specifies shape of output blob which will be [[
T], N] + @p outTailShape.
@details If this parameter is empty or unset then @p outTailShape = [Wh.size(0)] will be used,
where Wh is parameter from setWeights(). Read moresource§fn set_out_shape_def(&mut self) -> Result<()>
fn set_out_shape_def(&mut self) -> Result<()>
Specifies shape of output blob which will be [[
T], N] + @p outTailShape.
@details If this parameter is empty or unset then @p outTailShape = [Wh.size(0)] will be used,
where Wh is parameter from setWeights(). Read moresource§fn set_use_timstamps_dim(&mut self, use_: bool) -> Result<()>
fn set_use_timstamps_dim(&mut self, use_: bool) -> Result<()>
👎Deprecated: Use flag
produce_cell_output in LayerParams.Deprecated: Use flag
produce_cell_output in LayerParams.
Specifies either interpret first dimension of input blob as timestamp dimension either as sample. Read moresource§fn set_use_timstamps_dim_def(&mut self) -> Result<()>
fn set_use_timstamps_dim_def(&mut self) -> Result<()>
👎Deprecated: Use flag
produce_cell_output in LayerParams.Deprecated: Use flag
produce_cell_output in LayerParams.
Specifies either interpret first dimension of input blob as timestamp dimension either as sample. Read moresource§fn set_produce_cell_output(&mut self, produce: bool) -> Result<()>
fn set_produce_cell_output(&mut self, produce: bool) -> Result<()>
👎Deprecated: Use flag
use_timestamp_dim in LayerParams.Deprecated: Use flag
use_timestamp_dim in LayerParams.
If this flag is set to true then layer will produce @f$ c_t @f$ as second output.
@details Shape of the second output is the same as first output. Read moresource§fn set_produce_cell_output_def(&mut self) -> Result<()>
fn set_produce_cell_output_def(&mut self) -> Result<()>
👎Deprecated: Use flag
use_timestamp_dim in LayerParams.Deprecated: Use flag
use_timestamp_dim in LayerParams.
If this flag is set to true then layer will produce @f$ c_t @f$ as second output.
@details Shape of the second output is the same as first output. Read morefn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
source§impl LSTMLayerTraitConst for BoxedRefMut<'_, LSTMLayer>
impl LSTMLayerTraitConst for BoxedRefMut<'_, LSTMLayer>
fn as_raw_LSTMLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl LayerFactoryTrait for BoxedRefMut<'_, LayerFactory>
impl LayerFactoryTrait for BoxedRefMut<'_, LayerFactory>
fn as_raw_mut_LayerFactory( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl LayerFactoryTraitConst for BoxedRefMut<'_, LayerFactory>
impl LayerFactoryTraitConst for BoxedRefMut<'_, LayerFactory>
fn as_raw_LayerFactory(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl LayerParamsTrait for BoxedRefMut<'_, LayerParams>
impl LayerParamsTrait for BoxedRefMut<'_, LayerParams>
source§impl LayerParamsTraitConst for BoxedRefMut<'_, LayerParams>
impl LayerParamsTraitConst for BoxedRefMut<'_, LayerParams>
source§impl LayerTrait for BoxedRefMut<'_, AbsLayer>
impl LayerTrait for BoxedRefMut<'_, AbsLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, AccumLayer>
impl LayerTrait for BoxedRefMut<'_, AccumLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ActivationLayer>
impl LayerTrait for BoxedRefMut<'_, ActivationLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ActivationLayerInt8>
impl LayerTrait for BoxedRefMut<'_, ActivationLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, BNLLLayer>
impl LayerTrait for BoxedRefMut<'_, BNLLLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, BaseConvolutionLayer>
impl LayerTrait for BoxedRefMut<'_, BaseConvolutionLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, BatchNormLayer>
impl LayerTrait for BoxedRefMut<'_, BatchNormLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>
impl LayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, BlankLayer>
impl LayerTrait for BoxedRefMut<'_, BlankLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>
impl LayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ConcatLayer>
impl LayerTrait for BoxedRefMut<'_, ConcatLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ConstLayer>
impl LayerTrait for BoxedRefMut<'_, ConstLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ConvolutionLayer>
impl LayerTrait for BoxedRefMut<'_, ConvolutionLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ConvolutionLayerInt8>
impl LayerTrait for BoxedRefMut<'_, ConvolutionLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, CorrelationLayer>
impl LayerTrait for BoxedRefMut<'_, CorrelationLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, CropAndResizeLayer>
impl LayerTrait for BoxedRefMut<'_, CropAndResizeLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, CropLayer>
impl LayerTrait for BoxedRefMut<'_, CropLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, CumSumLayer>
impl LayerTrait for BoxedRefMut<'_, CumSumLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, DataAugmentationLayer>
impl LayerTrait for BoxedRefMut<'_, DataAugmentationLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, DeconvolutionLayer>
impl LayerTrait for BoxedRefMut<'_, DeconvolutionLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, DequantizeLayer>
impl LayerTrait for BoxedRefMut<'_, DequantizeLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, DetectionOutputLayer>
impl LayerTrait for BoxedRefMut<'_, DetectionOutputLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ELULayer>
impl LayerTrait for BoxedRefMut<'_, ELULayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, EltwiseLayer>
impl LayerTrait for BoxedRefMut<'_, EltwiseLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, EltwiseLayerInt8>
impl LayerTrait for BoxedRefMut<'_, EltwiseLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ExpLayer>
impl LayerTrait for BoxedRefMut<'_, ExpLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, FlattenLayer>
impl LayerTrait for BoxedRefMut<'_, FlattenLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, FlowWarpLayer>
impl LayerTrait for BoxedRefMut<'_, FlowWarpLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, GRULayer>
impl LayerTrait for BoxedRefMut<'_, GRULayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, InnerProductLayer>
impl LayerTrait for BoxedRefMut<'_, InnerProductLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, InnerProductLayerInt8>
impl LayerTrait for BoxedRefMut<'_, InnerProductLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, InterpLayer>
impl LayerTrait for BoxedRefMut<'_, InterpLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, LRNLayer>
impl LayerTrait for BoxedRefMut<'_, LRNLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, LSTMLayer>
impl LayerTrait for BoxedRefMut<'_, LSTMLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, Layer>
impl LayerTrait for BoxedRefMut<'_, Layer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, MVNLayer>
impl LayerTrait for BoxedRefMut<'_, MVNLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, MaxUnpoolLayer>
impl LayerTrait for BoxedRefMut<'_, MaxUnpoolLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, MishLayer>
impl LayerTrait for BoxedRefMut<'_, MishLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, NormalizeBBoxLayer>
impl LayerTrait for BoxedRefMut<'_, NormalizeBBoxLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, PaddingLayer>
impl LayerTrait for BoxedRefMut<'_, PaddingLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, PermuteLayer>
impl LayerTrait for BoxedRefMut<'_, PermuteLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, PoolingLayer>
impl LayerTrait for BoxedRefMut<'_, PoolingLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, PoolingLayerInt8>
impl LayerTrait for BoxedRefMut<'_, PoolingLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, PowerLayer>
impl LayerTrait for BoxedRefMut<'_, PowerLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, PriorBoxLayer>
impl LayerTrait for BoxedRefMut<'_, PriorBoxLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ProposalLayer>
impl LayerTrait for BoxedRefMut<'_, ProposalLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, QuantizeLayer>
impl LayerTrait for BoxedRefMut<'_, QuantizeLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, RNNLayer>
impl LayerTrait for BoxedRefMut<'_, RNNLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ReLU6Layer>
impl LayerTrait for BoxedRefMut<'_, ReLU6Layer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ReLULayer>
impl LayerTrait for BoxedRefMut<'_, ReLULayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, RegionLayer>
impl LayerTrait for BoxedRefMut<'_, RegionLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ReorgLayer>
impl LayerTrait for BoxedRefMut<'_, ReorgLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, RequantizeLayer>
impl LayerTrait for BoxedRefMut<'_, RequantizeLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ReshapeLayer>
impl LayerTrait for BoxedRefMut<'_, ReshapeLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ResizeLayer>
impl LayerTrait for BoxedRefMut<'_, ResizeLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ScaleLayer>
impl LayerTrait for BoxedRefMut<'_, ScaleLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ScaleLayerInt8>
impl LayerTrait for BoxedRefMut<'_, ScaleLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ShiftLayer>
impl LayerTrait for BoxedRefMut<'_, ShiftLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ShiftLayerInt8>
impl LayerTrait for BoxedRefMut<'_, ShiftLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, ShuffleChannelLayer>
impl LayerTrait for BoxedRefMut<'_, ShuffleChannelLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, SigmoidLayer>
impl LayerTrait for BoxedRefMut<'_, SigmoidLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, SliceLayer>
impl LayerTrait for BoxedRefMut<'_, SliceLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, SoftmaxLayer>
impl LayerTrait for BoxedRefMut<'_, SoftmaxLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, SoftmaxLayerInt8>
impl LayerTrait for BoxedRefMut<'_, SoftmaxLayerInt8>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, SplitLayer>
impl LayerTrait for BoxedRefMut<'_, SplitLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, SwishLayer>
impl LayerTrait for BoxedRefMut<'_, SwishLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTrait for BoxedRefMut<'_, TanHLayer>
impl LayerTrait for BoxedRefMut<'_, TanHLayer>
fn as_raw_mut_Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_blobs(&mut self, val: Vector<Mat>)
fn set_blobs(&mut self, val: Vector<Mat>)
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn set_name(&mut self, val: &str)
fn set_name(&mut self, val: &str)
Name of the layer instance, can be used for logging or other internal purposes.
source§fn set_type(&mut self, val: &str)
fn set_type(&mut self, val: &str)
Type name which was used for creating layer by layer factory.
source§fn set_preferable_target(&mut self, val: i32)
fn set_preferable_target(&mut self, val: i32)
prefer target for layer forwarding
source§fn finalize(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
) -> Result<()>
fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, ) -> Result<()>
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn forward_mat(
&mut self,
input: &mut Vector<Mat>,
output: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§fn forward(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn try_quantize(
&mut self,
scales: &Vector<Vector<f32>>,
zeropoints: &Vector<Vector<i32>>,
params: &mut impl LayerParamsTrait,
) -> Result<bool>
fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait, ) -> Result<bool>
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§fn forward_fallback(
&mut self,
inputs: &impl ToInputArray,
outputs: &mut impl ToOutputArray,
internals: &mut impl ToOutputArray,
) -> Result<()>
fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input blobs, computes the output @p blobs. Read more
source§fn finalize_mat_to(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
) -> Result<()>
fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§fn run(
&mut self,
inputs: &Vector<Mat>,
outputs: &mut Vector<Mat>,
internals: &mut Vector<Mat>,
) -> Result<()>
fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat>, ) -> Result<()>
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>
Returns index of input blob into the input array. Read more
source§fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>
Returns index of output blob in output array. Read more
source§fn support_backend(&mut self, backend_id: i32) -> Result<bool>
fn support_backend(&mut self, backend_id: i32) -> Result<bool>
Ask layer if it support specific backend for doing computations. Read more
source§fn init_halide(
&mut self,
inputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns Halide backend node. Read more
fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>>, ) -> Result<Ptr<BackendNode>>
fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
source§unsafe fn init_cuda(
&mut self,
context: *mut c_void,
inputs: &Vector<Ptr<BackendWrapper>>,
outputs: &Vector<Ptr<BackendWrapper>>,
) -> Result<Ptr<BackendNode>>
unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>>, ) -> Result<Ptr<BackendNode>>
Returns a CUDA backend node Read more
source§fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>
Implement layers fusing. Read more
source§fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>
Try to fuse current layer with a next one Read more
source§fn unset_attached(&mut self) -> Result<()>
fn unset_attached(&mut self) -> Result<()>
“Deattaches” all the layers, attached to particular layer.
fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>
fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>
source§impl LayerTraitConst for BoxedRefMut<'_, AbsLayer>
impl LayerTraitConst for BoxedRefMut<'_, AbsLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, AccumLayer>
impl LayerTraitConst for BoxedRefMut<'_, AccumLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ActivationLayer>
impl LayerTraitConst for BoxedRefMut<'_, ActivationLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ActivationLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, ActivationLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, BNLLLayer>
impl LayerTraitConst for BoxedRefMut<'_, BNLLLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>
impl LayerTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, BatchNormLayer>
impl LayerTraitConst for BoxedRefMut<'_, BatchNormLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, BlankLayer>
impl LayerTraitConst for BoxedRefMut<'_, BlankLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
impl LayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ConcatLayer>
impl LayerTraitConst for BoxedRefMut<'_, ConcatLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ConstLayer>
impl LayerTraitConst for BoxedRefMut<'_, ConstLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>
impl LayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, CorrelationLayer>
impl LayerTraitConst for BoxedRefMut<'_, CorrelationLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, CropAndResizeLayer>
impl LayerTraitConst for BoxedRefMut<'_, CropAndResizeLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, CropLayer>
impl LayerTraitConst for BoxedRefMut<'_, CropLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, CumSumLayer>
impl LayerTraitConst for BoxedRefMut<'_, CumSumLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, DataAugmentationLayer>
impl LayerTraitConst for BoxedRefMut<'_, DataAugmentationLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
impl LayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, DequantizeLayer>
impl LayerTraitConst for BoxedRefMut<'_, DequantizeLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, DetectionOutputLayer>
impl LayerTraitConst for BoxedRefMut<'_, DetectionOutputLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ELULayer>
impl LayerTraitConst for BoxedRefMut<'_, ELULayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, EltwiseLayer>
impl LayerTraitConst for BoxedRefMut<'_, EltwiseLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, EltwiseLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, EltwiseLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ExpLayer>
impl LayerTraitConst for BoxedRefMut<'_, ExpLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, FlattenLayer>
impl LayerTraitConst for BoxedRefMut<'_, FlattenLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, FlowWarpLayer>
impl LayerTraitConst for BoxedRefMut<'_, FlowWarpLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, GRULayer>
impl LayerTraitConst for BoxedRefMut<'_, GRULayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, InnerProductLayer>
impl LayerTraitConst for BoxedRefMut<'_, InnerProductLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, InnerProductLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, InnerProductLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, InterpLayer>
impl LayerTraitConst for BoxedRefMut<'_, InterpLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, LRNLayer>
impl LayerTraitConst for BoxedRefMut<'_, LRNLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, LSTMLayer>
impl LayerTraitConst for BoxedRefMut<'_, LSTMLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, Layer>
impl LayerTraitConst for BoxedRefMut<'_, Layer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, MVNLayer>
impl LayerTraitConst for BoxedRefMut<'_, MVNLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>
impl LayerTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, MishLayer>
impl LayerTraitConst for BoxedRefMut<'_, MishLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>
impl LayerTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, PaddingLayer>
impl LayerTraitConst for BoxedRefMut<'_, PaddingLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, PermuteLayer>
impl LayerTraitConst for BoxedRefMut<'_, PermuteLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, PoolingLayer>
impl LayerTraitConst for BoxedRefMut<'_, PoolingLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, PoolingLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, PoolingLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, PowerLayer>
impl LayerTraitConst for BoxedRefMut<'_, PowerLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, PriorBoxLayer>
impl LayerTraitConst for BoxedRefMut<'_, PriorBoxLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ProposalLayer>
impl LayerTraitConst for BoxedRefMut<'_, ProposalLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, QuantizeLayer>
impl LayerTraitConst for BoxedRefMut<'_, QuantizeLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, RNNLayer>
impl LayerTraitConst for BoxedRefMut<'_, RNNLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ReLU6Layer>
impl LayerTraitConst for BoxedRefMut<'_, ReLU6Layer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ReLULayer>
impl LayerTraitConst for BoxedRefMut<'_, ReLULayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, RegionLayer>
impl LayerTraitConst for BoxedRefMut<'_, RegionLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ReorgLayer>
impl LayerTraitConst for BoxedRefMut<'_, ReorgLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, RequantizeLayer>
impl LayerTraitConst for BoxedRefMut<'_, RequantizeLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ReshapeLayer>
impl LayerTraitConst for BoxedRefMut<'_, ReshapeLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ResizeLayer>
impl LayerTraitConst for BoxedRefMut<'_, ResizeLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ScaleLayer>
impl LayerTraitConst for BoxedRefMut<'_, ScaleLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ScaleLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, ScaleLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ShiftLayer>
impl LayerTraitConst for BoxedRefMut<'_, ShiftLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ShiftLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, ShiftLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, ShuffleChannelLayer>
impl LayerTraitConst for BoxedRefMut<'_, ShuffleChannelLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, SigmoidLayer>
impl LayerTraitConst for BoxedRefMut<'_, SigmoidLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, SliceLayer>
impl LayerTraitConst for BoxedRefMut<'_, SliceLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, SoftmaxLayer>
impl LayerTraitConst for BoxedRefMut<'_, SoftmaxLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
impl LayerTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, SplitLayer>
impl LayerTraitConst for BoxedRefMut<'_, SplitLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, SwishLayer>
impl LayerTraitConst for BoxedRefMut<'_, SwishLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LayerTraitConst for BoxedRefMut<'_, TanHLayer>
impl LayerTraitConst for BoxedRefMut<'_, TanHLayer>
fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn blobs(&self) -> Vector<Mat>
fn blobs(&self) -> Vector<Mat>
List of learned parameters must be stored here to allow read them by using Net::getParam().
source§fn name(&self) -> String
fn name(&self) -> String
Name of the layer instance, can be used for logging or other internal purposes.
source§fn preferable_target(&self) -> i32
fn preferable_target(&self) -> i32
prefer target for layer forwarding
source§fn apply_halide_scheduler(
&self,
node: &mut Ptr<BackendNode>,
inputs: &Vector<Mat>,
outputs: &Vector<Mat>,
target_id: i32,
) -> Result<()>
fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32, ) -> Result<()>
Automatic Halide scheduling based on layer hyper-parameters. Read more
source§fn get_scale_shift(
&self,
scale: &mut impl MatTrait,
shift: &mut impl MatTrait,
) -> Result<()>
fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait, ) -> Result<()>
Returns parameters of layers with channel-wise multiplication and addition. Read more
source§fn get_scale_zeropoint(
&self,
scale: &mut f32,
zeropoint: &mut i32,
) -> Result<()>
fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32, ) -> Result<()>
Returns scale and zeropoint of layers Read more
fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape>, ) -> Result<bool>
fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape>, ) -> Result<i64>
source§impl LineIteratorTrait for BoxedRefMut<'_, LineIterator>
impl LineIteratorTrait for BoxedRefMut<'_, LineIterator>
fn as_raw_mut_LineIterator( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn ptr_mut(&mut self) -> *mut u8
unsafe fn set_ptr(&mut self, val: *const u8)
fn set_step(&mut self, val: i32)
fn set_elem_size(&mut self, val: i32)
fn set_err(&mut self, val: i32)
fn set_count(&mut self, val: i32)
fn set_minus_delta(&mut self, val: i32)
fn set_plus_delta(&mut self, val: i32)
fn set_minus_step(&mut self, val: i32)
fn set_plus_step(&mut self, val: i32)
fn set_minus_shift(&mut self, val: i32)
fn set_plus_shift(&mut self, val: i32)
fn set_p(&mut self, val: Point)
fn set_ptmode(&mut self, val: bool)
fn init( &mut self, img: &impl MatTraitConst, bounding_area_rect: Rect, pt1: Point, pt2: Point, connectivity: i32, left_to_right: bool, ) -> Result<()>
source§fn incr(&mut self) -> Result<LineIterator>
fn incr(&mut self) -> Result<LineIterator>
prefix increment operator (++it). shifts iterator to the next pixel
source§impl LineIteratorTraitConst for BoxedRefMut<'_, LineIterator>
impl LineIteratorTraitConst for BoxedRefMut<'_, LineIterator>
fn as_raw_LineIterator(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn ptr(&self) -> *const u8
fn ptr0(&self) -> *const u8
fn step(&self) -> i32
fn elem_size(&self) -> i32
fn err(&self) -> i32
fn count(&self) -> i32
fn minus_delta(&self) -> i32
fn plus_delta(&self) -> i32
fn minus_step(&self) -> i32
fn plus_step(&self) -> i32
fn minus_shift(&self) -> i32
fn plus_shift(&self) -> i32
fn p(&self) -> Point
fn ptmode(&self) -> bool
source§impl LineSegmentDetectorTrait for BoxedRefMut<'_, LineSegmentDetector>
impl LineSegmentDetectorTrait for BoxedRefMut<'_, LineSegmentDetector>
fn as_raw_mut_LineSegmentDetector( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn detect(
&mut self,
image: &impl ToInputArray,
lines: &mut impl ToOutputArray,
width: &mut impl ToOutputArray,
prec: &mut impl ToOutputArray,
nfa: &mut impl ToOutputArray,
) -> Result<()>
fn detect( &mut self, image: &impl ToInputArray, lines: &mut impl ToOutputArray, width: &mut impl ToOutputArray, prec: &mut impl ToOutputArray, nfa: &mut impl ToOutputArray, ) -> Result<()>
Finds lines in the input image. Read more
source§fn detect_def(
&mut self,
image: &impl ToInputArray,
lines: &mut impl ToOutputArray,
) -> Result<()>
fn detect_def( &mut self, image: &impl ToInputArray, lines: &mut impl ToOutputArray, ) -> Result<()>
Finds lines in the input image. Read more
source§fn draw_segments(
&mut self,
image: &mut impl ToInputOutputArray,
lines: &impl ToInputArray,
) -> Result<()>
fn draw_segments( &mut self, image: &mut impl ToInputOutputArray, lines: &impl ToInputArray, ) -> Result<()>
Draws the line segments on a given image. Read more
source§fn compare_segments(
&mut self,
size: Size,
lines1: &impl ToInputArray,
lines2: &impl ToInputArray,
image: &mut impl ToInputOutputArray,
) -> Result<i32>
fn compare_segments( &mut self, size: Size, lines1: &impl ToInputArray, lines2: &impl ToInputArray, image: &mut impl ToInputOutputArray, ) -> Result<i32>
Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels. Read more
source§fn compare_segments_def(
&mut self,
size: Size,
lines1: &impl ToInputArray,
lines2: &impl ToInputArray,
) -> Result<i32>
fn compare_segments_def( &mut self, size: Size, lines1: &impl ToInputArray, lines2: &impl ToInputArray, ) -> Result<i32>
Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels. Read more
source§impl LineSegmentDetectorTraitConst for BoxedRefMut<'_, LineSegmentDetector>
impl LineSegmentDetectorTraitConst for BoxedRefMut<'_, LineSegmentDetector>
fn as_raw_LineSegmentDetector( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl LogTagTrait for BoxedRefMut<'_, LogTag>
impl LogTagTrait for BoxedRefMut<'_, LogTag>
source§impl LogTagTraitConst for BoxedRefMut<'_, LogTag>
impl LogTagTraitConst for BoxedRefMut<'_, LogTag>
source§impl MVNLayerTrait for BoxedRefMut<'_, MVNLayer>
impl MVNLayerTrait for BoxedRefMut<'_, MVNLayer>
fn as_raw_mut_MVNLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_eps(&mut self, val: f32)
fn set_norm_variance(&mut self, val: bool)
fn set_across_channels(&mut self, val: bool)
source§impl MVNLayerTraitConst for BoxedRefMut<'_, MVNLayer>
impl MVNLayerTraitConst for BoxedRefMut<'_, MVNLayer>
fn as_raw_MVNLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn eps(&self) -> f32
fn norm_variance(&self) -> bool
fn across_channels(&self) -> bool
source§impl MatConstIteratorTrait for BoxedRefMut<'_, MatConstIterator>
impl MatConstIteratorTrait for BoxedRefMut<'_, MatConstIterator>
fn as_raw_mut_MatConstIterator( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_elem_size(&mut self, val: size_t)
source§fn decr(&mut self) -> Result<MatConstIterator>
fn decr(&mut self) -> Result<MatConstIterator>
decrements the iterator
source§fn incr(&mut self) -> Result<MatConstIterator>
fn incr(&mut self) -> Result<MatConstIterator>
increments the iterator
source§fn seek(&mut self, ofs: ptrdiff_t, relative: bool) -> Result<()>
fn seek(&mut self, ofs: ptrdiff_t, relative: bool) -> Result<()>
C++ default parameters Read more
source§impl MatConstIteratorTraitConst for BoxedRefMut<'_, MatConstIterator>
impl MatConstIteratorTraitConst for BoxedRefMut<'_, MatConstIterator>
fn as_raw_MatConstIterator( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn m(&self) -> Mat
fn elem_size(&self) -> size_t
fn ptr(&self) -> *const u8
fn slice_start(&self) -> *const u8
fn slice_end(&self) -> *const u8
source§fn get(&self, i: ptrdiff_t) -> Result<*const u8>
fn get(&self, i: ptrdiff_t) -> Result<*const u8>
returns the i-th matrix element, relative to the current
fn lpos(&self) -> Result<ptrdiff_t>
fn typ(&self) -> i32
source§impl MatExprTrait for BoxedRefMut<'_, MatExpr>
impl MatExprTrait for BoxedRefMut<'_, MatExpr>
fn as_raw_mut_MatExpr( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_flags(&mut self, val: i32)
fn set_a(&mut self, val: Mat)
fn set_b(&mut self, val: Mat)
fn set_c(&mut self, val: Mat)
fn set_alpha(&mut self, val: f64)
fn set_beta(&mut self, val: f64)
fn set_s(&mut self, val: Scalar)
fn swap(&mut self, b: &mut impl MatExprTrait) -> Result<()>
source§impl MatExprTraitConst for BoxedRefMut<'_, MatExpr>
impl MatExprTraitConst for BoxedRefMut<'_, MatExpr>
fn as_raw_MatExpr(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn flags(&self) -> i32
fn a(&self) -> Mat
fn b(&self) -> Mat
fn c(&self) -> Mat
fn alpha(&self) -> f64
fn beta(&self) -> f64
fn s(&self) -> Scalar
fn to_mat(&self) -> Result<Mat>
fn size(&self) -> Result<Size>
fn typ(&self) -> Result<i32>
fn row(&self, y: i32) -> Result<MatExpr>
fn col(&self, x: i32) -> Result<MatExpr>
fn rowscols( &self, row_range: &impl RangeTraitConst, col_range: &impl RangeTraitConst, ) -> Result<MatExpr>
fn roi(&self, roi: Rect) -> Result<MatExpr>
fn t(&self) -> Result<MatExpr>
source§fn mul_matexpr(&self, e: &impl MatExprTraitConst, scale: f64) -> Result<MatExpr>
fn mul_matexpr(&self, e: &impl MatExprTraitConst, scale: f64) -> Result<MatExpr>
C++ default parameters Read more
source§fn mul_matexpr_def(&self, e: &impl MatExprTraitConst) -> Result<MatExpr>
fn mul_matexpr_def(&self, e: &impl MatExprTraitConst) -> Result<MatExpr>
Note Read more
source§fn mul(&self, m: &impl MatTraitConst, scale: f64) -> Result<MatExpr>
fn mul(&self, m: &impl MatTraitConst, scale: f64) -> Result<MatExpr>
C++ default parameters Read more
fn cross(&self, m: &impl MatTraitConst) -> Result<Mat>
fn dot(&self, m: &impl MatTraitConst) -> Result<f64>
source§impl MatOpTrait for BoxedRefMut<'_, MatOp>
impl MatOpTrait for BoxedRefMut<'_, MatOp>
fn as_raw_mut_MatOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl MatOpTraitConst for BoxedRefMut<'_, MatOp>
impl MatOpTraitConst for BoxedRefMut<'_, MatOp>
fn as_raw_MatOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn element_wise(&self, expr: &impl MatExprTraitConst) -> Result<bool>
source§fn assign(
&self,
expr: &impl MatExprTraitConst,
m: &mut impl MatTrait,
typ: i32,
) -> Result<()>
fn assign( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, typ: i32, ) -> Result<()>
C++ default parameters Read more
source§fn assign_def(
&self,
expr: &impl MatExprTraitConst,
m: &mut impl MatTrait,
) -> Result<()>
fn assign_def( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
Note Read more
fn roi( &self, expr: &impl MatExprTraitConst, row_range: &impl RangeTraitConst, col_range: &impl RangeTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
fn diag( &self, expr: &impl MatExprTraitConst, d: i32, res: &mut impl MatExprTrait, ) -> Result<()>
fn aug_assign_add( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
fn aug_assign_subtract( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
fn aug_assign_multiply( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
fn aug_assign_divide( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
fn aug_assign_and( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
fn aug_assign_or( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
fn aug_assign_xor( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, ) -> Result<()>
fn add( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
fn add_scalar( &self, expr1: &impl MatExprTraitConst, s: Scalar, res: &mut impl MatExprTrait, ) -> Result<()>
fn subtract( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
fn subtract_scalar( &self, s: Scalar, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
source§fn multiply(
&self,
expr1: &impl MatExprTraitConst,
expr2: &impl MatExprTraitConst,
res: &mut impl MatExprTrait,
scale: f64,
) -> Result<()>
fn multiply( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, scale: f64, ) -> Result<()>
C++ default parameters Read more
source§fn multiply_def(
&self,
expr1: &impl MatExprTraitConst,
expr2: &impl MatExprTraitConst,
res: &mut impl MatExprTrait,
) -> Result<()>
fn multiply_def( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
Note Read more
fn multiply_f64( &self, expr1: &impl MatExprTraitConst, s: f64, res: &mut impl MatExprTrait, ) -> Result<()>
source§fn divide(
&self,
expr1: &impl MatExprTraitConst,
expr2: &impl MatExprTraitConst,
res: &mut impl MatExprTrait,
scale: f64,
) -> Result<()>
fn divide( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, scale: f64, ) -> Result<()>
C++ default parameters Read more
source§fn divide_def(
&self,
expr1: &impl MatExprTraitConst,
expr2: &impl MatExprTraitConst,
res: &mut impl MatExprTrait,
) -> Result<()>
fn divide_def( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
Note Read more
fn divide_f64( &self, s: f64, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
fn abs( &self, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
fn transpose( &self, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
fn matmul( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, ) -> Result<()>
fn invert( &self, expr: &impl MatExprTraitConst, method: i32, res: &mut impl MatExprTrait, ) -> Result<()>
fn size(&self, expr: &impl MatExprTraitConst) -> Result<Size>
fn typ(&self, expr: &impl MatExprTraitConst) -> Result<i32>
source§impl MatSizeTrait for BoxedRefMut<'_, MatSize>
impl MatSizeTrait for BoxedRefMut<'_, MatSize>
source§impl MatSizeTraitConst for BoxedRefMut<'_, MatSize>
impl MatSizeTraitConst for BoxedRefMut<'_, MatSize>
fn as_raw_MatSize(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn p(&self) -> *const i32
fn dims(&self) -> i32
fn apply(&self) -> Result<Size>
fn get(&self, i: i32) -> Result<i32>
fn to_xconst_i32(&self) -> *const i32
fn equals(&self, sz: &impl MatSizeTraitConst) -> bool
fn not_equals(&self, sz: &impl MatSizeTraitConst) -> bool
source§impl MatStepTrait for BoxedRefMut<'_, MatStep>
impl MatStepTrait for BoxedRefMut<'_, MatStep>
fn as_raw_mut_MatStep( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn p_mut(&mut self) -> *mut size_t
unsafe fn set_p(&mut self, val: *const size_t)
fn buf_mut(&mut self) -> &mut [size_t; 2]
fn get_mut(&mut self, i: i32) -> size_t
fn set_size_t(&mut self, s: size_t) -> Result<()>
source§impl MatStepTraitConst for BoxedRefMut<'_, MatStep>
impl MatStepTraitConst for BoxedRefMut<'_, MatStep>
source§impl MatTrait for BoxedRefMut<'_, Mat>
impl MatTrait for BoxedRefMut<'_, Mat>
fn as_raw_mut_Mat( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_rows(&mut self, val: i32)
fn set_rows(&mut self, val: i32)
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
source§fn set_cols(&mut self, val: i32)
fn set_cols(&mut self, val: i32)
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
source§fn set_u(&mut self, val: &impl UMatDataTraitConst)
fn set_u(&mut self, val: &impl UMatDataTraitConst)
interaction with UMat
fn set_size(&mut self, val: MatSize)
source§fn set_matexpr(&mut self, expr: &impl MatExprTraitConst) -> Result<()>
fn set_matexpr(&mut self, expr: &impl MatExprTraitConst) -> Result<()>
assignment operators Read more
source§fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, Mat>>
fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, Mat>>
Creates a matrix header for the specified matrix row. Read more
source§fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, Mat>>
fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, Mat>>
Creates a matrix header for the specified matrix column. Read more
source§fn row_bounds_mut(
&mut self,
startrow: i32,
endrow: i32,
) -> Result<BoxedRefMut<'_, Mat>>
fn row_bounds_mut( &mut self, startrow: i32, endrow: i32, ) -> Result<BoxedRefMut<'_, Mat>>
Creates a matrix header for the specified row span. Read more
source§fn row_range_mut(
&mut self,
r: &impl RangeTraitConst,
) -> Result<BoxedRefMut<'_, Mat>>
fn row_range_mut( &mut self, r: &impl RangeTraitConst, ) -> Result<BoxedRefMut<'_, Mat>>
@overload Read more
source§fn col_bounds_mut(
&mut self,
startcol: i32,
endcol: i32,
) -> Result<BoxedRefMut<'_, Mat>>
fn col_bounds_mut( &mut self, startcol: i32, endcol: i32, ) -> Result<BoxedRefMut<'_, Mat>>
Creates a matrix header for the specified column span. Read more
source§fn col_range_mut(
&mut self,
r: &impl RangeTraitConst,
) -> Result<BoxedRefMut<'_, Mat>>
fn col_range_mut( &mut self, r: &impl RangeTraitConst, ) -> Result<BoxedRefMut<'_, Mat>>
@overload Read more
source§fn diag_def_mut(&mut self) -> Result<BoxedRefMut<'_, Mat>>
fn diag_def_mut(&mut self) -> Result<BoxedRefMut<'_, Mat>>
Extracts a diagonal from a matrix Read more
source§fn diag_mut(&mut self, d: i32) -> Result<BoxedRefMut<'_, Mat>>
fn diag_mut(&mut self, d: i32) -> Result<BoxedRefMut<'_, Mat>>
Extracts a diagonal from a matrix Read more
source§fn set_scalar(&mut self, s: Scalar) -> Result<()>
fn set_scalar(&mut self, s: Scalar) -> Result<()>
Sets all or some of the array elements to the specified value. Read more
source§fn set_to(
&mut self,
value: &impl ToInputArray,
mask: &impl ToInputArray,
) -> Result<Mat>
fn set_to( &mut self, value: &impl ToInputArray, mask: &impl ToInputArray, ) -> Result<Mat>
Sets all or some of the array elements to the specified value. Read more
source§fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<Mat>
fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<Mat>
Sets all or some of the array elements to the specified value. Read more
source§fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, Mat>>
fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, Mat>>
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, Mat>>
fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, Mat>>
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§fn reshape_nd_mut(
&mut self,
cn: i32,
newsz: &[i32],
) -> Result<BoxedRefMut<'_, Mat>>
fn reshape_nd_mut( &mut self, cn: i32, newsz: &[i32], ) -> Result<BoxedRefMut<'_, Mat>>
@overload
source§fn reshape_nd_vec_mut(
&mut self,
cn: i32,
newshape: &Vector<i32>,
) -> Result<BoxedRefMut<'_, Mat>>
fn reshape_nd_vec_mut( &mut self, cn: i32, newshape: &Vector<i32>, ) -> Result<BoxedRefMut<'_, Mat>>
@overload
source§unsafe fn create_rows_cols(
&mut self,
rows: i32,
cols: i32,
typ: i32,
) -> Result<()>
unsafe fn create_rows_cols( &mut self, rows: i32, cols: i32, typ: i32, ) -> Result<()>
Allocates new array data if needed. Read more
source§unsafe fn create_size(&mut self, size: Size, typ: i32) -> Result<()>
unsafe fn create_size(&mut self, size: Size, typ: i32) -> Result<()>
Allocates new array data if needed. Read more
source§unsafe fn create_nd(&mut self, sizes: &[i32], typ: i32) -> Result<()>
unsafe fn create_nd(&mut self, sizes: &[i32], typ: i32) -> Result<()>
Allocates new array data if needed. Read more
source§unsafe fn create_nd_vec(&mut self, sizes: &Vector<i32>, typ: i32) -> Result<()>
unsafe fn create_nd_vec(&mut self, sizes: &Vector<i32>, typ: i32) -> Result<()>
Allocates new array data if needed. Read more
source§unsafe fn release(&mut self) -> Result<()>
unsafe fn release(&mut self) -> Result<()>
Decrements the reference counter and deallocates the matrix if needed. Read more
source§fn deallocate(&mut self) -> Result<()>
fn deallocate(&mut self) -> Result<()>
internal use function, consider to use ‘release’ method instead; deallocates the matrix data
source§fn reserve(&mut self, sz: size_t) -> Result<()>
fn reserve(&mut self, sz: size_t) -> Result<()>
Reserves space for the certain number of rows. Read more
source§fn reserve_buffer(&mut self, sz: size_t) -> Result<()>
fn reserve_buffer(&mut self, sz: size_t) -> Result<()>
Reserves space for the certain number of bytes. Read more
source§fn resize_with_default(&mut self, sz: size_t, s: Scalar) -> Result<()>
fn resize_with_default(&mut self, sz: size_t, s: Scalar) -> Result<()>
Changes the number of matrix rows. Read more
source§fn push_back(&mut self, m: &impl MatTraitConst) -> Result<()>
fn push_back(&mut self, m: &impl MatTraitConst) -> Result<()>
Adds elements to the bottom of the matrix. Read more
source§fn pop_back(&mut self, nelems: size_t) -> Result<()>
fn pop_back(&mut self, nelems: size_t) -> Result<()>
Removes elements from the bottom of the matrix. Read more
source§fn pop_back_def(&mut self) -> Result<()>
fn pop_back_def(&mut self) -> Result<()>
Removes elements from the bottom of the matrix. Read more
source§fn adjust_roi(
&mut self,
dtop: i32,
dbottom: i32,
dleft: i32,
dright: i32,
) -> Result<Mat>
fn adjust_roi( &mut self, dtop: i32, dbottom: i32, dleft: i32, dright: i32, ) -> Result<Mat>
Adjusts a submatrix size and position within the parent matrix. Read more
source§fn rowscols_mut(
&mut self,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRefMut<'_, Mat>>
fn rowscols_mut( &mut self, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRefMut<'_, Mat>>
Extracts a rectangular submatrix. Read more
source§fn ranges_mut(&mut self, ranges: &Vector<Range>) -> Result<BoxedRefMut<'_, Mat>>
fn ranges_mut(&mut self, ranges: &Vector<Range>) -> Result<BoxedRefMut<'_, Mat>>
@overload Read more
source§fn ptr_mut(&mut self, i0: i32) -> Result<*mut u8>
fn ptr_mut(&mut self, i0: i32) -> Result<*mut u8>
Returns a pointer to the specified matrix row. Read more
source§fn ptr_mut_def(&mut self) -> Result<*mut u8>
fn ptr_mut_def(&mut self) -> Result<*mut u8>
Returns a pointer to the specified matrix row. Read more
source§fn ptr_2d_mut(&mut self, row: i32, col: i32) -> Result<*mut u8>
fn ptr_2d_mut(&mut self, row: i32, col: i32) -> Result<*mut u8>
Returns a pointer to the specified matrix row. Read more
source§fn ptr_3d_mut(&mut self, i0: i32, i1: i32, i2: i32) -> Result<*mut u8>
fn ptr_3d_mut(&mut self, i0: i32, i1: i32, i2: i32) -> Result<*mut u8>
Returns a pointer to the specified matrix row. Read more
source§fn ptr_nd_mut(&mut self, idx: &[i32]) -> Result<*mut u8>
fn ptr_nd_mut(&mut self, idx: &[i32]) -> Result<*mut u8>
Returns a pointer to the specified matrix row. Read more
source§fn at_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>
fn at_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>
Returns a reference to the specified array element. Read more
source§fn at_2d_mut<T: DataType>(&mut self, row: i32, col: i32) -> Result<&mut T>
fn at_2d_mut<T: DataType>(&mut self, row: i32, col: i32) -> Result<&mut T>
Returns a reference to the specified array element. Read more
source§fn at_3d_mut<T: DataType>(
&mut self,
i0: i32,
i1: i32,
i2: i32,
) -> Result<&mut T>
fn at_3d_mut<T: DataType>( &mut self, i0: i32, i1: i32, i2: i32, ) -> Result<&mut T>
Returns a reference to the specified array element. Read more
source§fn at_nd_mut<T: DataType>(&mut self, idx: &[i32]) -> Result<&mut T>
fn at_nd_mut<T: DataType>(&mut self, idx: &[i32]) -> Result<&mut T>
Returns a reference to the specified array element. Read more
source§fn at_pt_mut<T: DataType>(&mut self, pt: Point) -> Result<&mut T>
fn at_pt_mut<T: DataType>(&mut self, pt: Point) -> Result<&mut T>
Returns a reference to the specified array element. Read more
fn set(&mut self, m: Mat) -> Result<()>
source§fn update_continuity_flag(&mut self) -> Result<()>
fn update_continuity_flag(&mut self) -> Result<()>
internal use method: updates the continuity flag
source§impl MatTraitConst for BoxedRefMut<'_, Mat>
impl MatTraitConst for BoxedRefMut<'_, Mat>
fn as_raw_Mat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn rows(&self) -> i32
fn rows(&self) -> i32
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
source§fn cols(&self) -> i32
fn cols(&self) -> i32
the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
fn dataend(&self) -> *const u8
fn datalimit(&self) -> *const u8
fn mat_size(&self) -> MatSize
fn mat_step(&self) -> MatStep
source§fn get_umat(
&self,
access_flags: AccessFlag,
usage_flags: UMatUsageFlags,
) -> Result<UMat>
fn get_umat( &self, access_flags: AccessFlag, usage_flags: UMatUsageFlags, ) -> Result<UMat>
retrieve UMat from Mat Read more
source§fn get_umat_def(&self, access_flags: AccessFlag) -> Result<UMat>
fn get_umat_def(&self, access_flags: AccessFlag) -> Result<UMat>
retrieve UMat from Mat Read more
source§fn row(&self, y: i32) -> Result<BoxedRef<'_, Mat>>
fn row(&self, y: i32) -> Result<BoxedRef<'_, Mat>>
Creates a matrix header for the specified matrix row. Read more
source§fn col(&self, x: i32) -> Result<BoxedRef<'_, Mat>>
fn col(&self, x: i32) -> Result<BoxedRef<'_, Mat>>
Creates a matrix header for the specified matrix column. Read more
source§fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, Mat>>
fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, Mat>>
Creates a matrix header for the specified row span. Read more
source§fn row_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, Mat>>
fn row_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, Mat>>
Creates a matrix header for the specified row span. Read more
source§fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, Mat>>
fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, Mat>>
Creates a matrix header for the specified column span. Read more
source§fn col_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, Mat>>
fn col_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, Mat>>
Creates a matrix header for the specified column span. Read more
source§fn diag(&self, d: i32) -> Result<BoxedRef<'_, Mat>>
fn diag(&self, d: i32) -> Result<BoxedRef<'_, Mat>>
Extracts a diagonal from a matrix Read more
source§fn try_clone(&self) -> Result<Mat>
fn try_clone(&self) -> Result<Mat>
Creates a full copy of the array and the underlying data. Read more
source§fn copy_to(&self, m: &mut impl ToOutputArray) -> Result<()>
fn copy_to(&self, m: &mut impl ToOutputArray) -> Result<()>
Copies the matrix to another one. Read more
source§fn copy_to_masked(
&self,
m: &mut impl ToOutputArray,
mask: &impl ToInputArray,
) -> Result<()>
fn copy_to_masked( &self, m: &mut impl ToOutputArray, mask: &impl ToInputArray, ) -> Result<()>
Copies the matrix to another one. Read more
source§fn convert_to(
&self,
m: &mut impl ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64,
) -> Result<()>
fn convert_to( &self, m: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64, ) -> Result<()>
Converts an array to another data type with optional scaling. Read more
source§fn convert_to_def(&self, m: &mut impl ToOutputArray, rtype: i32) -> Result<()>
fn convert_to_def(&self, m: &mut impl ToOutputArray, rtype: i32) -> Result<()>
Converts an array to another data type with optional scaling. Read more
source§fn assign_to(&self, m: &mut impl MatTrait, typ: i32) -> Result<()>
fn assign_to(&self, m: &mut impl MatTrait, typ: i32) -> Result<()>
Provides a functional form of convertTo. Read more
source§fn assign_to_def(&self, m: &mut impl MatTrait) -> Result<()>
fn assign_to_def(&self, m: &mut impl MatTrait) -> Result<()>
Provides a functional form of convertTo. Read more
source§fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, Mat>>
fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, Mat>>
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, Mat>>
fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, Mat>>
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§fn reshape_nd(&self, cn: i32, newsz: &[i32]) -> Result<BoxedRef<'_, Mat>>
fn reshape_nd(&self, cn: i32, newsz: &[i32]) -> Result<BoxedRef<'_, Mat>>
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§fn reshape_nd_vec(
&self,
cn: i32,
newshape: &Vector<i32>,
) -> Result<BoxedRef<'_, Mat>>
fn reshape_nd_vec( &self, cn: i32, newshape: &Vector<i32>, ) -> Result<BoxedRef<'_, Mat>>
Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§fn mul(&self, m: &impl ToInputArray, scale: f64) -> Result<MatExpr>
fn mul(&self, m: &impl ToInputArray, scale: f64) -> Result<MatExpr>
Performs an element-wise multiplication or division of the two matrices. Read more
source§fn mul_def(&self, m: &impl ToInputArray) -> Result<MatExpr>
fn mul_def(&self, m: &impl ToInputArray) -> Result<MatExpr>
Performs an element-wise multiplication or division of the two matrices. Read more
source§fn cross(&self, m: &impl ToInputArray) -> Result<Mat>
fn cross(&self, m: &impl ToInputArray) -> Result<Mat>
Computes a cross-product of two 3-element vectors. Read more
source§fn dot(&self, m: &impl ToInputArray) -> Result<f64>
fn dot(&self, m: &impl ToInputArray) -> Result<f64>
Computes a dot-product of two vectors. Read more
source§fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
Locates the matrix header within a parent matrix. Read more
source§fn rowscols(
&self,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRef<'_, Mat>>
fn rowscols( &self, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRef<'_, Mat>>
Extracts a rectangular submatrix. Read more
source§fn roi(&self, roi: Rect) -> Result<BoxedRef<'_, Mat>>
fn roi(&self, roi: Rect) -> Result<BoxedRef<'_, Mat>>
Extracts a rectangular submatrix. Read more
source§fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, Mat>>
fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, Mat>>
Extracts a rectangular submatrix. Read more
source§fn is_continuous(&self) -> bool
fn is_continuous(&self) -> bool
Reports whether the matrix is continuous or not. Read more
source§fn is_submatrix(&self) -> bool
fn is_submatrix(&self) -> bool
returns true if the matrix is a submatrix of another matrix
source§fn elem_size1(&self) -> size_t
fn elem_size1(&self) -> size_t
Returns the size of each matrix element channel in bytes. Read more
source§fn total_slice(&self, start_dim: i32, end_dim: i32) -> Result<size_t>
fn total_slice(&self, start_dim: i32, end_dim: i32) -> Result<size_t>
Returns the total number of array elements. Read more
source§fn total_slice_def(&self, start_dim: i32) -> Result<size_t>
fn total_slice_def(&self, start_dim: i32) -> Result<size_t>
Returns the total number of array elements. Read more
source§fn check_vector(
&self,
elem_channels: i32,
depth: i32,
require_continuous: bool,
) -> Result<i32>
fn check_vector( &self, elem_channels: i32, depth: i32, require_continuous: bool, ) -> Result<i32>
Parameters Read more
source§fn ptr(&self, i0: i32) -> Result<*const u8>
fn ptr(&self, i0: i32) -> Result<*const u8>
Returns a pointer to the specified matrix row. Read more
source§fn ptr_2d(&self, row: i32, col: i32) -> Result<*const u8>
fn ptr_2d(&self, row: i32, col: i32) -> Result<*const u8>
Returns a pointer to the specified matrix row. Read more
source§fn ptr_3d(&self, i0: i32, i1: i32, i2: i32) -> Result<*const u8>
fn ptr_3d(&self, i0: i32, i1: i32, i2: i32) -> Result<*const u8>
Returns a pointer to the specified matrix row. Read more
source§fn ptr_nd(&self, idx: &[i32]) -> Result<*const u8>
fn ptr_nd(&self, idx: &[i32]) -> Result<*const u8>
Returns a pointer to the specified matrix row. Read more
source§fn at<T: DataType>(&self, i0: i32) -> Result<&T>
fn at<T: DataType>(&self, i0: i32) -> Result<&T>
Returns a reference to the specified array element. Read more
source§fn at_2d<T: DataType>(&self, row: i32, col: i32) -> Result<&T>
fn at_2d<T: DataType>(&self, row: i32, col: i32) -> Result<&T>
Returns a reference to the specified array element. Read more
source§fn at_3d<T: DataType>(&self, i0: i32, i1: i32, i2: i32) -> Result<&T>
fn at_3d<T: DataType>(&self, i0: i32, i1: i32, i2: i32) -> Result<&T>
Returns a reference to the specified array element. Read more
source§fn at_nd<T: DataType>(&self, idx: &[i32]) -> Result<&T>
fn at_nd<T: DataType>(&self, idx: &[i32]) -> Result<&T>
Returns a reference to the specified array element. Read more
source§fn at_pt<T: DataType>(&self, pt: Point) -> Result<&T>
fn at_pt<T: DataType>(&self, pt: Point) -> Result<&T>
Returns a reference to the specified array element. Read more
fn size(&self) -> Result<Size>
source§impl Matx_AddOpTrait for BoxedRefMut<'_, Matx_AddOp>
impl Matx_AddOpTrait for BoxedRefMut<'_, Matx_AddOp>
fn as_raw_mut_Matx_AddOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Matx_AddOpTraitConst for BoxedRefMut<'_, Matx_AddOp>
impl Matx_AddOpTraitConst for BoxedRefMut<'_, Matx_AddOp>
fn as_raw_Matx_AddOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl Matx_DivOpTrait for BoxedRefMut<'_, Matx_DivOp>
impl Matx_DivOpTrait for BoxedRefMut<'_, Matx_DivOp>
fn as_raw_mut_Matx_DivOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Matx_DivOpTraitConst for BoxedRefMut<'_, Matx_DivOp>
impl Matx_DivOpTraitConst for BoxedRefMut<'_, Matx_DivOp>
fn as_raw_Matx_DivOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl Matx_MatMulOpTrait for BoxedRefMut<'_, Matx_MatMulOp>
impl Matx_MatMulOpTrait for BoxedRefMut<'_, Matx_MatMulOp>
fn as_raw_mut_Matx_MatMulOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Matx_MatMulOpTraitConst for BoxedRefMut<'_, Matx_MatMulOp>
impl Matx_MatMulOpTraitConst for BoxedRefMut<'_, Matx_MatMulOp>
fn as_raw_Matx_MatMulOp( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl Matx_MulOpTrait for BoxedRefMut<'_, Matx_MulOp>
impl Matx_MulOpTrait for BoxedRefMut<'_, Matx_MulOp>
fn as_raw_mut_Matx_MulOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Matx_MulOpTraitConst for BoxedRefMut<'_, Matx_MulOp>
impl Matx_MulOpTraitConst for BoxedRefMut<'_, Matx_MulOp>
fn as_raw_Matx_MulOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl Matx_ScaleOpTrait for BoxedRefMut<'_, Matx_ScaleOp>
impl Matx_ScaleOpTrait for BoxedRefMut<'_, Matx_ScaleOp>
fn as_raw_mut_Matx_ScaleOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Matx_ScaleOpTraitConst for BoxedRefMut<'_, Matx_ScaleOp>
impl Matx_ScaleOpTraitConst for BoxedRefMut<'_, Matx_ScaleOp>
fn as_raw_Matx_ScaleOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl Matx_SubOpTrait for BoxedRefMut<'_, Matx_SubOp>
impl Matx_SubOpTrait for BoxedRefMut<'_, Matx_SubOp>
fn as_raw_mut_Matx_SubOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Matx_SubOpTraitConst for BoxedRefMut<'_, Matx_SubOp>
impl Matx_SubOpTraitConst for BoxedRefMut<'_, Matx_SubOp>
fn as_raw_Matx_SubOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl Matx_TOpTrait for BoxedRefMut<'_, Matx_TOp>
impl Matx_TOpTrait for BoxedRefMut<'_, Matx_TOp>
fn as_raw_mut_Matx_TOp( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl Matx_TOpTraitConst for BoxedRefMut<'_, Matx_TOp>
impl Matx_TOpTraitConst for BoxedRefMut<'_, Matx_TOp>
fn as_raw_Matx_TOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl MaxUnpoolLayerTrait for BoxedRefMut<'_, MaxUnpoolLayer>
impl MaxUnpoolLayerTrait for BoxedRefMut<'_, MaxUnpoolLayer>
fn as_raw_mut_MaxUnpoolLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_pool_kernel(&mut self, val: Size)
fn set_pool_pad(&mut self, val: Size)
fn set_pool_stride(&mut self, val: Size)
source§impl MaxUnpoolLayerTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>
impl MaxUnpoolLayerTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>
fn as_raw_MaxUnpoolLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn pool_kernel(&self) -> Size
fn pool_pad(&self) -> Size
fn pool_stride(&self) -> Size
source§impl MinProblemSolverTrait for BoxedRefMut<'_, ConjGradSolver>
impl MinProblemSolverTrait for BoxedRefMut<'_, ConjGradSolver>
fn as_raw_mut_MinProblemSolver( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>
fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>
Setter for the optimized function. Read more
source§fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>
fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>
Set terminal criteria for solver. Read more
source§impl MinProblemSolverTrait for BoxedRefMut<'_, DownhillSolver>
impl MinProblemSolverTrait for BoxedRefMut<'_, DownhillSolver>
fn as_raw_mut_MinProblemSolver( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>
fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>
Setter for the optimized function. Read more
source§fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>
fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>
Set terminal criteria for solver. Read more
source§impl MinProblemSolverTrait for BoxedRefMut<'_, MinProblemSolver>
impl MinProblemSolverTrait for BoxedRefMut<'_, MinProblemSolver>
fn as_raw_mut_MinProblemSolver( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>
fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>
Setter for the optimized function. Read more
source§fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>
fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>
Set terminal criteria for solver. Read more
source§impl MinProblemSolverTraitConst for BoxedRefMut<'_, ConjGradSolver>
impl MinProblemSolverTraitConst for BoxedRefMut<'_, ConjGradSolver>
fn as_raw_MinProblemSolver( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>
fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>
Getter for the optimized function. Read more
source§fn get_term_criteria(&self) -> Result<TermCriteria>
fn get_term_criteria(&self) -> Result<TermCriteria>
Getter for the previously set terminal criteria for this algorithm. Read more
source§impl MinProblemSolverTraitConst for BoxedRefMut<'_, DownhillSolver>
impl MinProblemSolverTraitConst for BoxedRefMut<'_, DownhillSolver>
fn as_raw_MinProblemSolver( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>
fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>
Getter for the optimized function. Read more
source§fn get_term_criteria(&self) -> Result<TermCriteria>
fn get_term_criteria(&self) -> Result<TermCriteria>
Getter for the previously set terminal criteria for this algorithm. Read more
source§impl MinProblemSolverTraitConst for BoxedRefMut<'_, MinProblemSolver>
impl MinProblemSolverTraitConst for BoxedRefMut<'_, MinProblemSolver>
fn as_raw_MinProblemSolver( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>
fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>
Getter for the optimized function. Read more
source§fn get_term_criteria(&self) -> Result<TermCriteria>
fn get_term_criteria(&self) -> Result<TermCriteria>
Getter for the previously set terminal criteria for this algorithm. Read more
source§impl MinProblemSolver_FunctionTrait for BoxedRefMut<'_, MinProblemSolver_Function>
impl MinProblemSolver_FunctionTrait for BoxedRefMut<'_, MinProblemSolver_Function>
fn as_raw_mut_MinProblemSolver_Function( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn get_gradient(&mut self, x: &f64, grad: &mut f64) -> Result<()>
source§impl MishLayerTrait for BoxedRefMut<'_, MishLayer>
impl MishLayerTrait for BoxedRefMut<'_, MishLayer>
fn as_raw_mut_MishLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl MishLayerTraitConst for BoxedRefMut<'_, MishLayer>
impl MishLayerTraitConst for BoxedRefMut<'_, MishLayer>
fn as_raw_MishLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ModelTrait for BoxedRefMut<'_, ClassificationModel>
impl ModelTrait for BoxedRefMut<'_, ClassificationModel>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, DetectionModel>
impl ModelTrait for BoxedRefMut<'_, DetectionModel>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, KeypointsModel>
impl ModelTrait for BoxedRefMut<'_, KeypointsModel>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, Model>
impl ModelTrait for BoxedRefMut<'_, Model>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, SegmentationModel>
impl ModelTrait for BoxedRefMut<'_, SegmentationModel>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, TextDetectionModel>
impl ModelTrait for BoxedRefMut<'_, TextDetectionModel>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, TextDetectionModel_DB>
impl ModelTrait for BoxedRefMut<'_, TextDetectionModel_DB>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, TextDetectionModel_EAST>
impl ModelTrait for BoxedRefMut<'_, TextDetectionModel_EAST>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTrait for BoxedRefMut<'_, TextRecognitionModel>
impl ModelTrait for BoxedRefMut<'_, TextRecognitionModel>
fn as_raw_mut_Model( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl ModelTraitConst)
fn set_1(&mut self, unnamed: Model)
source§fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>
Set input size for frame. Read more
source§fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>
Set mean value for frame. Read more
source§fn set_input_scale(&mut self, scale: f64) -> Result<Model>
fn set_input_scale(&mut self, scale: f64) -> Result<Model>
Set scalefactor value for frame. Read more
source§fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>
Set flag swapRB for frame. Read more
source§fn set_input_params(
&mut self,
scale: f64,
size: Size,
mean: Scalar,
swap_rb: bool,
crop: bool,
) -> Result<()>
fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool, ) -> Result<()>
Set preprocessing parameters for frame. Read more
source§fn set_input_params_def(&mut self) -> Result<()>
fn set_input_params_def(&mut self) -> Result<()>
Set preprocessing parameters for frame. Read more
fn get_network__1(&mut self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, ClassificationModel>
impl ModelTraitConst for BoxedRefMut<'_, ClassificationModel>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, DetectionModel>
impl ModelTraitConst for BoxedRefMut<'_, DetectionModel>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, KeypointsModel>
impl ModelTraitConst for BoxedRefMut<'_, KeypointsModel>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, Model>
impl ModelTraitConst for BoxedRefMut<'_, Model>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, SegmentationModel>
impl ModelTraitConst for BoxedRefMut<'_, SegmentationModel>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel>
impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>
impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>
impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl ModelTraitConst for BoxedRefMut<'_, TextRecognitionModel>
impl ModelTraitConst for BoxedRefMut<'_, TextRecognitionModel>
fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn predict(
&self,
frame: &impl ToInputArray,
outs: &mut impl ToOutputArray,
) -> Result<()>
fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
fn get_network_(&self) -> Result<Net>
source§impl<Mat: Boxed> ModifyInplace for BoxedRefMut<'_, Mat>
impl<Mat: Boxed> ModifyInplace for BoxedRefMut<'_, Mat>
source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Self, &mut Self) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Self, &mut Self) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat or another similar object. By passing
a mutable reference to the Mat to this function your closure will get called with the read reference and a write references
to the same Mat. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold. Read moresource§impl NetTrait for BoxedRefMut<'_, Net>
impl NetTrait for BoxedRefMut<'_, Net>
fn as_raw_mut_Net( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn dump_to_file(&mut self, path: &str) -> Result<()>
fn dump_to_file(&mut self, path: &str) -> Result<()>
Dump net structure, hyperparameters, backend, target and fusion to dot file Read more
source§fn add_layer_type(
&mut self,
name: &str,
typ: &str,
dtype: &i32,
params: &mut impl LayerParamsTrait,
) -> Result<i32>
fn add_layer_type( &mut self, name: &str, typ: &str, dtype: &i32, params: &mut impl LayerParamsTrait, ) -> Result<i32>
Adds new layer to the net. Read more
source§fn add_layer(
&mut self,
name: &str,
typ: &str,
params: &mut impl LayerParamsTrait,
) -> Result<i32>
fn add_layer( &mut self, name: &str, typ: &str, params: &mut impl LayerParamsTrait, ) -> Result<i32>
Adds new layer to the net. Read more
source§fn add_layer_to_prev_type(
&mut self,
name: &str,
typ: &str,
dtype: &i32,
params: &mut impl LayerParamsTrait,
) -> Result<i32>
fn add_layer_to_prev_type( &mut self, name: &str, typ: &str, dtype: &i32, params: &mut impl LayerParamsTrait, ) -> Result<i32>
Adds new layer and connects its first input to the first output of previously added layer. Read more
source§fn add_layer_to_prev(
&mut self,
name: &str,
typ: &str,
params: &mut impl LayerParamsTrait,
) -> Result<i32>
fn add_layer_to_prev( &mut self, name: &str, typ: &str, params: &mut impl LayerParamsTrait, ) -> Result<i32>
Adds new layer and connects its first input to the first output of previously added layer. Read more
source§fn get_layer_id(&mut self, layer: &str) -> Result<i32>
fn get_layer_id(&mut self, layer: &str) -> Result<i32>
Converts string name of the layer to the integer identifier. Read more
source§fn get_layer(&mut self, layer_id: impl DictValueTrait) -> Result<Ptr<Layer>>
fn get_layer(&mut self, layer_id: impl DictValueTrait) -> Result<Ptr<Layer>>
Returns pointer to layer with specified id or name which the network use.
source§fn get_layer_inputs(
&mut self,
layer_id: impl DictValueTrait,
) -> Result<Vector<Ptr<Layer>>>
fn get_layer_inputs( &mut self, layer_id: impl DictValueTrait, ) -> Result<Vector<Ptr<Layer>>>
Returns pointers to input layers of specific layer.
source§fn connect_first_second(&mut self, out_pin: &str, inp_pin: &str) -> Result<()>
fn connect_first_second(&mut self, out_pin: &str, inp_pin: &str) -> Result<()>
Connects output of the first layer to input of the second layer. Read more
source§fn connect(
&mut self,
out_layer_id: i32,
out_num: i32,
inp_layer_id: i32,
inp_num: i32,
) -> Result<()>
fn connect( &mut self, out_layer_id: i32, out_num: i32, inp_layer_id: i32, inp_num: i32, ) -> Result<()>
Connects #@p outNum output of the first layer to #@p inNum input of the second layer. Read more
source§fn set_inputs_names(&mut self, input_blob_names: &Vector<String>) -> Result<()>
fn set_inputs_names(&mut self, input_blob_names: &Vector<String>) -> Result<()>
Sets outputs names of the network input pseudo layer. Read more
source§fn set_input_shape(&mut self, input_name: &str, shape: &MatShape) -> Result<()>
fn set_input_shape(&mut self, input_name: &str, shape: &MatShape) -> Result<()>
Specify shape of network input.
source§fn forward_single(&mut self, output_name: &str) -> Result<Mat>
fn forward_single(&mut self, output_name: &str) -> Result<Mat>
Runs forward pass to compute output of layer with name @p outputName. Read more
source§fn forward_single_def(&mut self) -> Result<Mat>
fn forward_single_def(&mut self) -> Result<Mat>
Runs forward pass to compute output of layer with name @p outputName. Read more
source§fn forward_async(&mut self, output_name: &str) -> Result<AsyncArray>
fn forward_async(&mut self, output_name: &str) -> Result<AsyncArray>
Runs forward pass to compute output of layer with name @p outputName. Read more
source§fn forward_async_def(&mut self) -> Result<AsyncArray>
fn forward_async_def(&mut self) -> Result<AsyncArray>
Runs forward pass to compute output of layer with name @p outputName. Read more
source§fn forward_layer(
&mut self,
output_blobs: &mut impl ToOutputArray,
output_name: &str,
) -> Result<()>
fn forward_layer( &mut self, output_blobs: &mut impl ToOutputArray, output_name: &str, ) -> Result<()>
Runs forward pass to compute output of layer with name @p outputName. Read more
source§fn forward_layer_def(
&mut self,
output_blobs: &mut impl ToOutputArray,
) -> Result<()>
fn forward_layer_def( &mut self, output_blobs: &mut impl ToOutputArray, ) -> Result<()>
Runs forward pass to compute output of layer with name @p outputName. Read more
source§fn forward(
&mut self,
output_blobs: &mut impl ToOutputArray,
out_blob_names: &Vector<String>,
) -> Result<()>
fn forward( &mut self, output_blobs: &mut impl ToOutputArray, out_blob_names: &Vector<String>, ) -> Result<()>
Runs forward pass to compute outputs of layers listed in @p outBlobNames. Read more
source§fn forward_and_retrieve(
&mut self,
output_blobs: &mut Vector<Vector<Mat>>,
out_blob_names: &Vector<String>,
) -> Result<()>
fn forward_and_retrieve( &mut self, output_blobs: &mut Vector<Vector<Mat>>, out_blob_names: &Vector<String>, ) -> Result<()>
Runs forward pass to compute outputs of layers listed in @p outBlobNames. Read more
source§fn quantize(
&mut self,
calib_data: &impl ToInputArray,
inputs_dtype: i32,
outputs_dtype: i32,
) -> Result<Net>
fn quantize( &mut self, calib_data: &impl ToInputArray, inputs_dtype: i32, outputs_dtype: i32, ) -> Result<Net>
Returns a quantized Net from a floating-point Net. Read more
source§fn set_halide_scheduler(&mut self, scheduler: &str) -> Result<()>
fn set_halide_scheduler(&mut self, scheduler: &str) -> Result<()>
Compile Halide layers. Read more
source§fn set_preferable_backend(&mut self, backend_id: i32) -> Result<()>
fn set_preferable_backend(&mut self, backend_id: i32) -> Result<()>
Ask network to use specific computation backend where it supported. Read more
source§fn set_preferable_target(&mut self, target_id: i32) -> Result<()>
fn set_preferable_target(&mut self, target_id: i32) -> Result<()>
Ask network to make computations on specific target device. Read more
source§fn set_input(
&mut self,
blob: &impl ToInputArray,
name: &str,
scalefactor: f64,
mean: Scalar,
) -> Result<()>
fn set_input( &mut self, blob: &impl ToInputArray, name: &str, scalefactor: f64, mean: Scalar, ) -> Result<()>
Sets the new input value for the network Read more
source§fn set_input_def(&mut self, blob: &impl ToInputArray) -> Result<()>
fn set_input_def(&mut self, blob: &impl ToInputArray) -> Result<()>
Sets the new input value for the network Read more
source§fn set_param(
&mut self,
layer: impl DictValueTrait,
num_param: i32,
blob: &impl MatTraitConst,
) -> Result<()>
fn set_param( &mut self, layer: impl DictValueTrait, num_param: i32, blob: &impl MatTraitConst, ) -> Result<()>
Sets the new value for the learned param of the layer. Read more
source§fn get_param(
&mut self,
layer: impl DictValueTrait,
num_param: i32,
) -> Result<Mat>
fn get_param( &mut self, layer: impl DictValueTrait, num_param: i32, ) -> Result<Mat>
Returns parameter blob of the layer. Read more
source§fn get_param_def(&mut self, layer: impl DictValueTrait) -> Result<Mat>
fn get_param_def(&mut self, layer: impl DictValueTrait) -> Result<Mat>
Returns parameter blob of the layer. Read more
source§impl NetTraitConst for BoxedRefMut<'_, Net>
impl NetTraitConst for BoxedRefMut<'_, Net>
fn as_raw_Net(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_layer_names(&self) -> Result<Vector<String>>
source§fn get_input_details(
&self,
scales: &mut Vector<f32>,
zeropoints: &mut Vector<i32>,
) -> Result<()>
fn get_input_details( &self, scales: &mut Vector<f32>, zeropoints: &mut Vector<i32>, ) -> Result<()>
Returns input scale and zeropoint for a quantized Net. Read more
source§fn get_output_details(
&self,
scales: &mut Vector<f32>,
zeropoints: &mut Vector<i32>,
) -> Result<()>
fn get_output_details( &self, scales: &mut Vector<f32>, zeropoints: &mut Vector<i32>, ) -> Result<()>
Returns output scale and zeropoint for a quantized Net. Read more
source§fn get_unconnected_out_layers(&self) -> Result<Vector<i32>>
fn get_unconnected_out_layers(&self) -> Result<Vector<i32>>
Returns indexes of layers with unconnected outputs.
source§fn get_unconnected_out_layers_names(&self) -> Result<Vector<String>>
fn get_unconnected_out_layers_names(&self) -> Result<Vector<String>>
Returns names of layers with unconnected outputs.
source§fn get_layers_shapes(
&self,
net_input_shapes: &Vector<MatShape>,
layers_ids: &mut Vector<i32>,
in_layers_shapes: &mut Vector<Vector<MatShape>>,
out_layers_shapes: &mut Vector<Vector<MatShape>>,
) -> Result<()>
fn get_layers_shapes( &self, net_input_shapes: &Vector<MatShape>, layers_ids: &mut Vector<i32>, in_layers_shapes: &mut Vector<Vector<MatShape>>, out_layers_shapes: &mut Vector<Vector<MatShape>>, ) -> Result<()>
Returns input and output shapes for all layers in loaded model;
preliminary inferencing isn’t necessary. Read more
source§fn get_layers_shapes_1(
&self,
net_input_shape: &MatShape,
layers_ids: &mut Vector<i32>,
in_layers_shapes: &mut Vector<Vector<MatShape>>,
out_layers_shapes: &mut Vector<Vector<MatShape>>,
) -> Result<()>
fn get_layers_shapes_1( &self, net_input_shape: &MatShape, layers_ids: &mut Vector<i32>, in_layers_shapes: &mut Vector<Vector<MatShape>>, out_layers_shapes: &mut Vector<Vector<MatShape>>, ) -> Result<()>
Returns input and output shapes for all layers in loaded model;
preliminary inferencing isn’t necessary. Read more
source§fn get_layer_shapes(
&self,
net_input_shape: &MatShape,
layer_id: i32,
in_layer_shapes: &mut Vector<MatShape>,
out_layer_shapes: &mut Vector<MatShape>,
) -> Result<()>
fn get_layer_shapes( &self, net_input_shape: &MatShape, layer_id: i32, in_layer_shapes: &mut Vector<MatShape>, out_layer_shapes: &mut Vector<MatShape>, ) -> Result<()>
Returns input and output shapes for layer with specified
id in loaded model; preliminary inferencing isn’t necessary. Read more
source§fn get_layer_shapes_1(
&self,
net_input_shapes: &Vector<MatShape>,
layer_id: i32,
in_layer_shapes: &mut Vector<MatShape>,
out_layer_shapes: &mut Vector<MatShape>,
) -> Result<()>
fn get_layer_shapes_1( &self, net_input_shapes: &Vector<MatShape>, layer_id: i32, in_layer_shapes: &mut Vector<MatShape>, out_layer_shapes: &mut Vector<MatShape>, ) -> Result<()>
Returns input and output shapes for layer with specified
id in loaded model; preliminary inferencing isn’t necessary. Read more
source§fn get_flops(&self, net_input_shapes: &Vector<MatShape>) -> Result<i64>
fn get_flops(&self, net_input_shapes: &Vector<MatShape>) -> Result<i64>
Computes FLOP for whole loaded model with specified input shapes. Read more
source§fn get_flops_1(&self, net_input_shape: &MatShape) -> Result<i64>
fn get_flops_1(&self, net_input_shape: &MatShape) -> Result<i64>
Computes FLOP for whole loaded model with specified input shapes. Read more
source§fn get_flops_2(
&self,
layer_id: i32,
net_input_shapes: &Vector<MatShape>,
) -> Result<i64>
fn get_flops_2( &self, layer_id: i32, net_input_shapes: &Vector<MatShape>, ) -> Result<i64>
Computes FLOP for whole loaded model with specified input shapes. Read more
source§fn get_flops_3(&self, layer_id: i32, net_input_shape: &MatShape) -> Result<i64>
fn get_flops_3(&self, layer_id: i32, net_input_shape: &MatShape) -> Result<i64>
Computes FLOP for whole loaded model with specified input shapes. Read more
source§fn get_layer_types(&self, layers_types: &mut Vector<String>) -> Result<()>
fn get_layer_types(&self, layers_types: &mut Vector<String>) -> Result<()>
Returns list of types for layer used in model. Read more
source§fn get_layers_count(&self, layer_type: &str) -> Result<i32>
fn get_layers_count(&self, layer_type: &str) -> Result<i32>
Returns count of layers of specified type. Read more
source§fn get_memory_consumption(
&self,
net_input_shapes: &Vector<MatShape>,
weights: &mut size_t,
blobs: &mut size_t,
) -> Result<()>
fn get_memory_consumption( &self, net_input_shapes: &Vector<MatShape>, weights: &mut size_t, blobs: &mut size_t, ) -> Result<()>
Computes bytes number which are required to store
all weights and intermediate blobs for model. Read more
source§fn get_memory_consumption_1(
&self,
net_input_shape: &MatShape,
weights: &mut size_t,
blobs: &mut size_t,
) -> Result<()>
fn get_memory_consumption_1( &self, net_input_shape: &MatShape, weights: &mut size_t, blobs: &mut size_t, ) -> Result<()>
Computes bytes number which are required to store
all weights and intermediate blobs for model. Read more
source§fn get_memory_consumption_for_layer(
&self,
layer_id: i32,
net_input_shapes: &Vector<MatShape>,
weights: &mut size_t,
blobs: &mut size_t,
) -> Result<()>
fn get_memory_consumption_for_layer( &self, layer_id: i32, net_input_shapes: &Vector<MatShape>, weights: &mut size_t, blobs: &mut size_t, ) -> Result<()>
Computes bytes number which are required to store
all weights and intermediate blobs for model. Read more
source§fn get_memory_consumption_2(
&self,
layer_id: i32,
net_input_shape: &MatShape,
weights: &mut size_t,
blobs: &mut size_t,
) -> Result<()>
fn get_memory_consumption_2( &self, layer_id: i32, net_input_shape: &MatShape, weights: &mut size_t, blobs: &mut size_t, ) -> Result<()>
Computes bytes number which are required to store
all weights and intermediate blobs for model. Read more
source§fn get_memory_consumption_for_layers(
&self,
net_input_shapes: &Vector<MatShape>,
layer_ids: &mut Vector<i32>,
weights: &mut Vector<size_t>,
blobs: &mut Vector<size_t>,
) -> Result<()>
fn get_memory_consumption_for_layers( &self, net_input_shapes: &Vector<MatShape>, layer_ids: &mut Vector<i32>, weights: &mut Vector<size_t>, blobs: &mut Vector<size_t>, ) -> Result<()>
Computes bytes number which are required to store
all weights and intermediate blobs for each layer. Read more
source§impl NodeDataTrait for BoxedRefMut<'_, NodeData>
impl NodeDataTrait for BoxedRefMut<'_, NodeData>
fn as_raw_mut_NodeData( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_m_fun_name(&mut self, val: &str)
fn set_m_instr_type(&mut self, val: TYPE)
fn set_m_impl_type(&mut self, val: IMPL)
fn set_m_line_num(&mut self, val: i32)
fn m_ret_address(&mut self) -> *mut c_void
unsafe fn set_m_ret_address(&mut self, val: *const c_void)
fn set_m_always_expand(&mut self, val: bool)
fn set_m_fun_error(&mut self, val: bool)
fn set_m_counter(&mut self, val: i32)
fn set_m_ticks_total(&mut self, val: u64)
fn set_m_threads(&mut self, val: i32)
fn set(&mut self, unnamed: &impl NodeDataTraitConst) -> Result<()>
source§impl NodeDataTraitConst for BoxedRefMut<'_, NodeData>
impl NodeDataTraitConst for BoxedRefMut<'_, NodeData>
fn as_raw_NodeData(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn m_fun_name(&self) -> String
fn m_instr_type(&self) -> TYPE
fn m_impl_type(&self) -> IMPL
fn m_file_name(&self) -> String
fn m_line_num(&self) -> i32
fn m_always_expand(&self) -> bool
fn m_fun_error(&self) -> bool
fn m_counter(&self) -> i32
fn m_ticks_total(&self) -> u64
fn m_threads(&self) -> i32
fn get_total_ms(&self) -> Result<f64>
fn get_mean_ms(&self) -> Result<f64>
source§impl NormalizeBBoxLayerTrait for BoxedRefMut<'_, NormalizeBBoxLayer>
impl NormalizeBBoxLayerTrait for BoxedRefMut<'_, NormalizeBBoxLayer>
fn as_raw_mut_NormalizeBBoxLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_pnorm(&mut self, val: f32)
fn set_epsilon(&mut self, val: f32)
fn set_across_spatial(&mut self, val: bool)
source§impl NormalizeBBoxLayerTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>
impl NormalizeBBoxLayerTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>
source§impl OpenCLExecutionContextTrait for BoxedRefMut<'_, OpenCLExecutionContext>
impl OpenCLExecutionContextTrait for BoxedRefMut<'_, OpenCLExecutionContext>
fn as_raw_mut_OpenCLExecutionContext( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, unnamed: &impl OpenCLExecutionContextTraitConst)
fn set_1(&mut self, unnamed: OpenCLExecutionContext)
fn set_use_opencl(&mut self, flag: bool) -> Result<()>
fn release(&mut self) -> Result<()>
source§impl OpenCLExecutionContextTraitConst for BoxedRefMut<'_, OpenCLExecutionContext>
impl OpenCLExecutionContextTraitConst for BoxedRefMut<'_, OpenCLExecutionContext>
fn as_raw_OpenCLExecutionContext( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_context(&self) -> Result<Context>
fn get_context(&self) -> Result<Context>
Get associated ocl::Context
source§fn get_device(&self) -> Result<Device>
fn get_device(&self) -> Result<Device>
Get the single default associated ocl::Device
source§fn get_queue(&self) -> Result<Queue>
fn get_queue(&self) -> Result<Queue>
Get the single ocl::Queue that is associated with the ocl::Context and
the single default ocl::Device
fn use_opencl(&self) -> Result<bool>
source§fn clone_with_new_queue(
&self,
q: &impl QueueTraitConst,
) -> Result<OpenCLExecutionContext>
fn clone_with_new_queue( &self, q: &impl QueueTraitConst, ) -> Result<OpenCLExecutionContext>
Creates new execution context with same OpenCV context and device Read more
source§fn clone_with_new_queue_1(&self) -> Result<OpenCLExecutionContext>
fn clone_with_new_queue_1(&self) -> Result<OpenCLExecutionContext>
Creates new execution context with same OpenCV context and device Read more
fn empty(&self) -> Result<bool>
source§impl PCATrait for BoxedRefMut<'_, PCA>
impl PCATrait for BoxedRefMut<'_, PCA>
fn as_raw_mut_PCA( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_eigenvectors(&mut self, val: Mat)
fn set_eigenvectors(&mut self, val: Mat)
eigenvectors of the covariation matrix
source§fn set_eigenvalues(&mut self, val: Mat)
fn set_eigenvalues(&mut self, val: Mat)
eigenvalues of the covariation matrix
source§fn set_mean(&mut self, val: Mat)
fn set_mean(&mut self, val: Mat)
mean value subtracted before the projection and added after the back projection
source§fn apply(
&mut self,
data: &impl ToInputArray,
mean: &impl ToInputArray,
flags: i32,
max_components: i32,
) -> Result<PCA>
fn apply( &mut self, data: &impl ToInputArray, mean: &impl ToInputArray, flags: i32, max_components: i32, ) -> Result<PCA>
performs %PCA Read more
source§fn apply_def(
&mut self,
data: &impl ToInputArray,
mean: &impl ToInputArray,
flags: i32,
) -> Result<PCA>
fn apply_def( &mut self, data: &impl ToInputArray, mean: &impl ToInputArray, flags: i32, ) -> Result<PCA>
performs %PCA Read more
source§fn apply_1(
&mut self,
data: &impl ToInputArray,
mean: &impl ToInputArray,
flags: i32,
retained_variance: f64,
) -> Result<PCA>
fn apply_1( &mut self, data: &impl ToInputArray, mean: &impl ToInputArray, flags: i32, retained_variance: f64, ) -> Result<PCA>
performs %PCA Read more
source§impl PCATraitConst for BoxedRefMut<'_, PCA>
impl PCATraitConst for BoxedRefMut<'_, PCA>
fn as_raw_PCA(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn eigenvectors(&self) -> Mat
fn eigenvectors(&self) -> Mat
eigenvectors of the covariation matrix
source§fn eigenvalues(&self) -> Mat
fn eigenvalues(&self) -> Mat
eigenvalues of the covariation matrix
source§fn mean(&self) -> Mat
fn mean(&self) -> Mat
mean value subtracted before the projection and added after the back projection
source§fn project(&self, vec: &impl ToInputArray) -> Result<Mat>
fn project(&self, vec: &impl ToInputArray) -> Result<Mat>
Projects vector(s) to the principal component subspace. Read more
source§fn project_to(
&self,
vec: &impl ToInputArray,
result: &mut impl ToOutputArray,
) -> Result<()>
fn project_to( &self, vec: &impl ToInputArray, result: &mut impl ToOutputArray, ) -> Result<()>
Projects vector(s) to the principal component subspace. Read more
source§fn back_project(&self, vec: &impl ToInputArray) -> Result<Mat>
fn back_project(&self, vec: &impl ToInputArray) -> Result<Mat>
Reconstructs vectors from their PC projections. Read more
source§fn back_project_to(
&self,
vec: &impl ToInputArray,
result: &mut impl ToOutputArray,
) -> Result<()>
fn back_project_to( &self, vec: &impl ToInputArray, result: &mut impl ToOutputArray, ) -> Result<()>
Reconstructs vectors from their PC projections. Read more
source§impl PaddingLayerTrait for BoxedRefMut<'_, PaddingLayer>
impl PaddingLayerTrait for BoxedRefMut<'_, PaddingLayer>
fn as_raw_mut_PaddingLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl PaddingLayerTraitConst for BoxedRefMut<'_, PaddingLayer>
impl PaddingLayerTraitConst for BoxedRefMut<'_, PaddingLayer>
fn as_raw_PaddingLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ParallelLoopBodyTrait for BoxedRefMut<'_, ParallelLoopBody>
impl ParallelLoopBodyTrait for BoxedRefMut<'_, ParallelLoopBody>
fn as_raw_mut_ParallelLoopBody( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ParallelLoopBodyTraitConst for BoxedRefMut<'_, ParallelLoopBody>
impl ParallelLoopBodyTraitConst for BoxedRefMut<'_, ParallelLoopBody>
fn as_raw_ParallelLoopBody( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn apply(&self, range: &impl RangeTraitConst) -> Result<()>
source§impl PermuteLayerTrait for BoxedRefMut<'_, PermuteLayer>
impl PermuteLayerTrait for BoxedRefMut<'_, PermuteLayer>
fn as_raw_mut_PermuteLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl PermuteLayerTraitConst for BoxedRefMut<'_, PermuteLayer>
impl PermuteLayerTraitConst for BoxedRefMut<'_, PermuteLayer>
fn as_raw_PermuteLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl PlatformInfoTrait for BoxedRefMut<'_, PlatformInfo>
impl PlatformInfoTrait for BoxedRefMut<'_, PlatformInfo>
fn as_raw_mut_PlatformInfo( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, i: &impl PlatformInfoTraitConst) -> Result<()>
fn set_1(&mut self, i: PlatformInfo)
source§impl PlatformInfoTraitConst for BoxedRefMut<'_, PlatformInfo>
impl PlatformInfoTraitConst for BoxedRefMut<'_, PlatformInfo>
fn as_raw_PlatformInfo(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn name(&self) -> Result<String>
fn vendor(&self) -> Result<String>
fn version_major(&self) -> Result<i32>
fn version_minor(&self) -> Result<i32>
fn device_number(&self) -> Result<i32>
fn get_device(&self, device: &mut impl DeviceTrait, d: i32) -> Result<()>
fn empty(&self) -> Result<bool>
source§impl PlatformTrait for BoxedRefMut<'_, Platform>
impl PlatformTrait for BoxedRefMut<'_, Platform>
source§impl PlatformTraitConst for BoxedRefMut<'_, Platform>
impl PlatformTraitConst for BoxedRefMut<'_, Platform>
source§impl PoolingLayerInt8Trait for BoxedRefMut<'_, PoolingLayerInt8>
impl PoolingLayerInt8Trait for BoxedRefMut<'_, PoolingLayerInt8>
fn as_raw_mut_PoolingLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_input_zp(&mut self, val: i32)
fn set_output_zp(&mut self, val: i32)
source§impl PoolingLayerInt8TraitConst for BoxedRefMut<'_, PoolingLayerInt8>
impl PoolingLayerInt8TraitConst for BoxedRefMut<'_, PoolingLayerInt8>
source§impl PoolingLayerTrait for BoxedRefMut<'_, PoolingLayer>
impl PoolingLayerTrait for BoxedRefMut<'_, PoolingLayer>
fn as_raw_mut_PoolingLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_type(&mut self, val: i32)
fn set_kernel_size(&mut self, val: Vector<size_t>)
fn set_strides(&mut self, val: Vector<size_t>)
fn set_pads_begin(&mut self, val: Vector<size_t>)
fn set_pads_end(&mut self, val: Vector<size_t>)
source§fn set_global_pooling(&mut self, val: bool)
fn set_global_pooling(&mut self, val: bool)
Flag is true if at least one of the axes is global pooled.
fn set_is_global_pooling(&mut self, val: Vector<bool>)
fn set_compute_max_idx(&mut self, val: bool)
fn set_pad_mode(&mut self, val: &str)
fn set_ceil_mode(&mut self, val: bool)
fn set_ave_pool_padded_area(&mut self, val: bool)
fn set_pooled_size(&mut self, val: Size)
fn set_spatial_scale(&mut self, val: f32)
fn set_ps_roi_out_channels(&mut self, val: i32)
source§impl PoolingLayerTrait for BoxedRefMut<'_, PoolingLayerInt8>
impl PoolingLayerTrait for BoxedRefMut<'_, PoolingLayerInt8>
fn as_raw_mut_PoolingLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_type(&mut self, val: i32)
fn set_kernel_size(&mut self, val: Vector<size_t>)
fn set_strides(&mut self, val: Vector<size_t>)
fn set_pads_begin(&mut self, val: Vector<size_t>)
fn set_pads_end(&mut self, val: Vector<size_t>)
source§fn set_global_pooling(&mut self, val: bool)
fn set_global_pooling(&mut self, val: bool)
Flag is true if at least one of the axes is global pooled.
fn set_is_global_pooling(&mut self, val: Vector<bool>)
fn set_compute_max_idx(&mut self, val: bool)
fn set_pad_mode(&mut self, val: &str)
fn set_ceil_mode(&mut self, val: bool)
fn set_ave_pool_padded_area(&mut self, val: bool)
fn set_pooled_size(&mut self, val: Size)
fn set_spatial_scale(&mut self, val: f32)
fn set_ps_roi_out_channels(&mut self, val: i32)
source§impl PoolingLayerTraitConst for BoxedRefMut<'_, PoolingLayer>
impl PoolingLayerTraitConst for BoxedRefMut<'_, PoolingLayer>
fn as_raw_PoolingLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn typ(&self) -> i32
fn kernel_size(&self) -> Vector<size_t>
fn strides(&self) -> Vector<size_t>
fn pads_begin(&self) -> Vector<size_t>
fn pads_end(&self) -> Vector<size_t>
source§fn global_pooling(&self) -> bool
fn global_pooling(&self) -> bool
Flag is true if at least one of the axes is global pooled.
fn is_global_pooling(&self) -> Vector<bool>
fn compute_max_idx(&self) -> bool
fn pad_mode(&self) -> String
fn ceil_mode(&self) -> bool
fn ave_pool_padded_area(&self) -> bool
fn pooled_size(&self) -> Size
fn spatial_scale(&self) -> f32
fn ps_roi_out_channels(&self) -> i32
source§impl PoolingLayerTraitConst for BoxedRefMut<'_, PoolingLayerInt8>
impl PoolingLayerTraitConst for BoxedRefMut<'_, PoolingLayerInt8>
fn as_raw_PoolingLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn typ(&self) -> i32
fn kernel_size(&self) -> Vector<size_t>
fn strides(&self) -> Vector<size_t>
fn pads_begin(&self) -> Vector<size_t>
fn pads_end(&self) -> Vector<size_t>
source§fn global_pooling(&self) -> bool
fn global_pooling(&self) -> bool
Flag is true if at least one of the axes is global pooled.
fn is_global_pooling(&self) -> Vector<bool>
fn compute_max_idx(&self) -> bool
fn pad_mode(&self) -> String
fn ceil_mode(&self) -> bool
fn ave_pool_padded_area(&self) -> bool
fn pooled_size(&self) -> Size
fn spatial_scale(&self) -> f32
fn ps_roi_out_channels(&self) -> i32
source§impl PowerLayerTrait for BoxedRefMut<'_, PowerLayer>
impl PowerLayerTrait for BoxedRefMut<'_, PowerLayer>
source§impl PowerLayerTraitConst for BoxedRefMut<'_, PowerLayer>
impl PowerLayerTraitConst for BoxedRefMut<'_, PowerLayer>
source§impl PriorBoxLayerTrait for BoxedRefMut<'_, PriorBoxLayer>
impl PriorBoxLayerTrait for BoxedRefMut<'_, PriorBoxLayer>
fn as_raw_mut_PriorBoxLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl PriorBoxLayerTraitConst for BoxedRefMut<'_, PriorBoxLayer>
impl PriorBoxLayerTraitConst for BoxedRefMut<'_, PriorBoxLayer>
fn as_raw_PriorBoxLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ProgramSourceTrait for BoxedRefMut<'_, ProgramSource>
impl ProgramSourceTrait for BoxedRefMut<'_, ProgramSource>
fn as_raw_mut_ProgramSource( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, prog: &impl ProgramSourceTraitConst) -> Result<()>
fn set_1(&mut self, prog: ProgramSource)
source§impl ProgramSourceTraitConst for BoxedRefMut<'_, ProgramSource>
impl ProgramSourceTraitConst for BoxedRefMut<'_, ProgramSource>
source§impl ProgramTrait for BoxedRefMut<'_, Program>
impl ProgramTrait for BoxedRefMut<'_, Program>
fn as_raw_mut_Program( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, prog: &impl ProgramTraitConst) -> Result<()>
fn set_1(&mut self, prog: Program)
fn create( &mut self, src: &impl ProgramSourceTraitConst, buildflags: &str, errmsg: &mut String, ) -> Result<bool>
fn read(&mut self, buf: &str, buildflags: &str) -> Result<bool>
source§impl ProgramTraitConst for BoxedRefMut<'_, Program>
impl ProgramTraitConst for BoxedRefMut<'_, Program>
fn as_raw_Program(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn ptr(&self) -> Result<*mut c_void>
source§fn get_binary(&self, binary: &mut Vector<c_char>) -> Result<()>
fn get_binary(&self, binary: &mut Vector<c_char>) -> Result<()>
Query device-specific program binary. Read more
fn empty(&self) -> Result<bool>
fn write(&self, buf: &mut String) -> Result<bool>
fn source(&self) -> Result<ProgramSource>
fn get_prefix(&self) -> Result<String>
source§impl ProposalLayerTrait for BoxedRefMut<'_, ProposalLayer>
impl ProposalLayerTrait for BoxedRefMut<'_, ProposalLayer>
fn as_raw_mut_ProposalLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ProposalLayerTraitConst for BoxedRefMut<'_, ProposalLayer>
impl ProposalLayerTraitConst for BoxedRefMut<'_, ProposalLayer>
fn as_raw_ProposalLayer( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl QuantizeLayerTrait for BoxedRefMut<'_, QuantizeLayer>
impl QuantizeLayerTrait for BoxedRefMut<'_, QuantizeLayer>
source§impl QuantizeLayerTraitConst for BoxedRefMut<'_, QuantizeLayer>
impl QuantizeLayerTraitConst for BoxedRefMut<'_, QuantizeLayer>
source§impl QueueTrait for BoxedRefMut<'_, Queue>
impl QueueTrait for BoxedRefMut<'_, Queue>
fn as_raw_mut_Queue( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set(&mut self, q: &impl QueueTraitConst) -> Result<()>
fn set_1(&mut self, q: Queue)
source§fn create(
&mut self,
c: &impl ContextTraitConst,
d: &impl DeviceTraitConst,
) -> Result<bool>
fn create( &mut self, c: &impl ContextTraitConst, d: &impl DeviceTraitConst, ) -> Result<bool>
C++ default parameters Read more
fn finish(&mut self) -> Result<()>
source§impl QueueTraitConst for BoxedRefMut<'_, Queue>
impl QueueTraitConst for BoxedRefMut<'_, Queue>
source§impl RNGTrait for BoxedRefMut<'_, RNG>
impl RNGTrait for BoxedRefMut<'_, RNG>
fn as_raw_mut_RNG( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_state(&mut self, val: u64)
source§fn next(&mut self) -> Result<u32>
fn next(&mut self) -> Result<u32>
The method updates the state using the MWC algorithm and returns the
next 32-bit random number.
source§fn to_u8(&mut self) -> Result<u8>
fn to_u8(&mut self) -> Result<u8>
Each of the methods updates the state using the MWC algorithm and
returns the next random number of the specified type. In case of integer
types, the returned number is from the available value range for the
specified type. In case of floating-point types, the returned value is
from [0,1) range.
source§fn to_i8(&mut self) -> Result<i8>
fn to_i8(&mut self) -> Result<i8>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§fn to_u16(&mut self) -> Result<u16>
fn to_u16(&mut self) -> Result<u16>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§fn to_i16(&mut self) -> Result<i16>
fn to_i16(&mut self) -> Result<i16>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§fn to_u32(&mut self) -> Result<u32>
fn to_u32(&mut self) -> Result<u32>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§fn to_i32(&mut self) -> Result<i32>
fn to_i32(&mut self) -> Result<i32>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§fn to_f32(&mut self) -> Result<f32>
fn to_f32(&mut self) -> Result<f32>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§fn to_f64(&mut self) -> Result<f64>
fn to_f64(&mut self) -> Result<f64>
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§fn apply(&mut self) -> Result<u32>
fn apply(&mut self) -> Result<u32>
returns a random integer sampled uniformly from [0, N). Read more
source§fn apply_range(&mut self, n: u32) -> Result<u32>
fn apply_range(&mut self, n: u32) -> Result<u32>
returns a random integer sampled uniformly from [0, N). Read more
source§fn uniform(&mut self, a: i32, b: i32) -> Result<i32>
fn uniform(&mut self, a: i32, b: i32) -> Result<i32>
returns uniformly distributed integer random number from [a,b) range Read more
source§fn uniform_f32(&mut self, a: f32, b: f32) -> Result<f32>
fn uniform_f32(&mut self, a: f32, b: f32) -> Result<f32>
returns uniformly distributed integer random number from [a,b) range Read more
source§fn uniform_f64(&mut self, a: f64, b: f64) -> Result<f64>
fn uniform_f64(&mut self, a: f64, b: f64) -> Result<f64>
returns uniformly distributed integer random number from [a,b) range Read more
source§fn fill(
&mut self,
mat: &mut impl ToInputOutputArray,
dist_type: i32,
a: &impl ToInputArray,
b: &impl ToInputArray,
saturate_range: bool,
) -> Result<()>
fn fill( &mut self, mat: &mut impl ToInputOutputArray, dist_type: i32, a: &impl ToInputArray, b: &impl ToInputArray, saturate_range: bool, ) -> Result<()>
Fills arrays with random numbers. Read more
source§fn fill_def(
&mut self,
mat: &mut impl ToInputOutputArray,
dist_type: i32,
a: &impl ToInputArray,
b: &impl ToInputArray,
) -> Result<()>
fn fill_def( &mut self, mat: &mut impl ToInputOutputArray, dist_type: i32, a: &impl ToInputArray, b: &impl ToInputArray, ) -> Result<()>
Fills arrays with random numbers. Read more
source§impl RNGTraitConst for BoxedRefMut<'_, RNG>
impl RNGTraitConst for BoxedRefMut<'_, RNG>
source§impl RNG_MT19937Trait for BoxedRefMut<'_, RNG_MT19937>
impl RNG_MT19937Trait for BoxedRefMut<'_, RNG_MT19937>
fn as_raw_mut_RNG_MT19937( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn seed(&mut self, s: u32) -> Result<()>
fn next(&mut self) -> Result<u32>
fn to_i32(&mut self) -> Result<i32>
fn to_u32(&mut self) -> Result<u32>
fn to_f32(&mut self) -> Result<f32>
fn to_f64(&mut self) -> Result<f64>
fn to_u32_with_max(&mut self, n: u32) -> Result<u32>
source§fn uniform(&mut self, a: i32, b: i32) -> Result<i32>
fn uniform(&mut self, a: i32, b: i32) -> Result<i32>
returns uniformly distributed integer random number from [a,b) range
source§impl RNG_MT19937TraitConst for BoxedRefMut<'_, RNG_MT19937>
impl RNG_MT19937TraitConst for BoxedRefMut<'_, RNG_MT19937>
fn as_raw_RNG_MT19937(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl RNNLayerTrait for BoxedRefMut<'_, RNNLayer>
impl RNNLayerTrait for BoxedRefMut<'_, RNNLayer>
fn as_raw_mut_RNNLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_weights(
&mut self,
wxh: &impl MatTraitConst,
bh: &impl MatTraitConst,
whh: &impl MatTraitConst,
who: &impl MatTraitConst,
bo: &impl MatTraitConst,
) -> Result<()>
fn set_weights( &mut self, wxh: &impl MatTraitConst, bh: &impl MatTraitConst, whh: &impl MatTraitConst, who: &impl MatTraitConst, bo: &impl MatTraitConst, ) -> Result<()>
Setups learned weights. Read more
If this flag is set to true then layer will produce @f$ h_t @f$ as second output.
@details Shape of the second output is the same as first output. Read more
If this flag is set to true then layer will produce @f$ h_t @f$ as second output.
@details Shape of the second output is the same as first output. Read more
source§impl RNNLayerTraitConst for BoxedRefMut<'_, RNNLayer>
impl RNNLayerTraitConst for BoxedRefMut<'_, RNNLayer>
fn as_raw_RNNLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl RangeTrait for BoxedRefMut<'_, Range>
impl RangeTrait for BoxedRefMut<'_, Range>
source§impl RangeTrait for BoxedRefMut<'_, _Range>
impl RangeTrait for BoxedRefMut<'_, _Range>
source§impl RangeTraitConst for BoxedRefMut<'_, Range>
impl RangeTraitConst for BoxedRefMut<'_, Range>
source§impl RangeTraitConst for BoxedRefMut<'_, _Range>
impl RangeTraitConst for BoxedRefMut<'_, _Range>
source§impl ReLU6LayerTrait for BoxedRefMut<'_, ReLU6Layer>
impl ReLU6LayerTrait for BoxedRefMut<'_, ReLU6Layer>
fn as_raw_mut_ReLU6Layer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_min_value(&mut self, val: f32)
fn set_max_value(&mut self, val: f32)
source§impl ReLU6LayerTraitConst for BoxedRefMut<'_, ReLU6Layer>
impl ReLU6LayerTraitConst for BoxedRefMut<'_, ReLU6Layer>
source§impl ReLULayerTrait for BoxedRefMut<'_, ReLULayer>
impl ReLULayerTrait for BoxedRefMut<'_, ReLULayer>
fn as_raw_mut_ReLULayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_negative_slope(&mut self, val: f32)
source§impl ReLULayerTraitConst for BoxedRefMut<'_, ReLULayer>
impl ReLULayerTraitConst for BoxedRefMut<'_, ReLULayer>
fn as_raw_ReLULayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn negative_slope(&self) -> f32
source§impl RegionLayerTrait for BoxedRefMut<'_, RegionLayer>
impl RegionLayerTrait for BoxedRefMut<'_, RegionLayer>
fn as_raw_mut_RegionLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_nms_threshold(&mut self, val: f32)
source§impl RegionLayerTraitConst for BoxedRefMut<'_, RegionLayer>
impl RegionLayerTraitConst for BoxedRefMut<'_, RegionLayer>
fn as_raw_RegionLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn nms_threshold(&self) -> f32
source§impl ReorgLayerTrait for BoxedRefMut<'_, ReorgLayer>
impl ReorgLayerTrait for BoxedRefMut<'_, ReorgLayer>
fn as_raw_mut_ReorgLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ReorgLayerTraitConst for BoxedRefMut<'_, ReorgLayer>
impl ReorgLayerTraitConst for BoxedRefMut<'_, ReorgLayer>
fn as_raw_ReorgLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl RequantizeLayerTrait for BoxedRefMut<'_, RequantizeLayer>
impl RequantizeLayerTrait for BoxedRefMut<'_, RequantizeLayer>
source§impl RequantizeLayerTraitConst for BoxedRefMut<'_, RequantizeLayer>
impl RequantizeLayerTraitConst for BoxedRefMut<'_, RequantizeLayer>
source§impl ReshapeLayerTrait for BoxedRefMut<'_, ReshapeLayer>
impl ReshapeLayerTrait for BoxedRefMut<'_, ReshapeLayer>
fn as_raw_mut_ReshapeLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_new_shape_desc(&mut self, val: MatShape)
fn set_new_shape_range(&mut self, val: Range)
source§impl ReshapeLayerTraitConst for BoxedRefMut<'_, ReshapeLayer>
impl ReshapeLayerTraitConst for BoxedRefMut<'_, ReshapeLayer>
fn as_raw_ReshapeLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn new_shape_desc(&self) -> MatShape
fn new_shape_range(&self) -> Range
source§impl ResizeLayerTrait for BoxedRefMut<'_, ResizeLayer>
impl ResizeLayerTrait for BoxedRefMut<'_, ResizeLayer>
fn as_raw_mut_ResizeLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ResizeLayerTraitConst for BoxedRefMut<'_, ResizeLayer>
impl ResizeLayerTraitConst for BoxedRefMut<'_, ResizeLayer>
fn as_raw_ResizeLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl SVDTrait for BoxedRefMut<'_, SVD>
impl SVDTrait for BoxedRefMut<'_, SVD>
fn as_raw_mut_SVD( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_u(&mut self, val: Mat)
fn set_w(&mut self, val: Mat)
fn set_vt(&mut self, val: Mat)
source§impl SVDTraitConst for BoxedRefMut<'_, SVD>
impl SVDTraitConst for BoxedRefMut<'_, SVD>
fn as_raw_SVD(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn u(&self) -> Mat
fn w(&self) -> Mat
fn vt(&self) -> Mat
source§fn back_subst(
&self,
rhs: &impl ToInputArray,
dst: &mut impl ToOutputArray,
) -> Result<()>
fn back_subst( &self, rhs: &impl ToInputArray, dst: &mut impl ToOutputArray, ) -> Result<()>
performs a singular value back substitution. Read more
source§impl ScaleLayerInt8Trait for BoxedRefMut<'_, ScaleLayerInt8>
impl ScaleLayerInt8Trait for BoxedRefMut<'_, ScaleLayerInt8>
fn as_raw_mut_ScaleLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_output_sc(&mut self, val: f32)
fn set_output_zp(&mut self, val: i32)
source§impl ScaleLayerInt8TraitConst for BoxedRefMut<'_, ScaleLayerInt8>
impl ScaleLayerInt8TraitConst for BoxedRefMut<'_, ScaleLayerInt8>
source§impl ScaleLayerTrait for BoxedRefMut<'_, ScaleLayer>
impl ScaleLayerTrait for BoxedRefMut<'_, ScaleLayer>
source§impl ScaleLayerTrait for BoxedRefMut<'_, ScaleLayerInt8>
impl ScaleLayerTrait for BoxedRefMut<'_, ScaleLayerInt8>
source§impl ScaleLayerTraitConst for BoxedRefMut<'_, ScaleLayer>
impl ScaleLayerTraitConst for BoxedRefMut<'_, ScaleLayer>
source§impl ScaleLayerTraitConst for BoxedRefMut<'_, ScaleLayerInt8>
impl ScaleLayerTraitConst for BoxedRefMut<'_, ScaleLayerInt8>
source§impl SegmentationModelTrait for BoxedRefMut<'_, SegmentationModel>
impl SegmentationModelTrait for BoxedRefMut<'_, SegmentationModel>
fn as_raw_mut_SegmentationModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn segment(
&mut self,
frame: &impl ToInputArray,
mask: &mut impl ToOutputArray,
) -> Result<()>
fn segment( &mut self, frame: &impl ToInputArray, mask: &mut impl ToOutputArray, ) -> Result<()>
Given the @p input frame, create input blob, run net Read more
source§impl SegmentationModelTraitConst for BoxedRefMut<'_, SegmentationModel>
impl SegmentationModelTraitConst for BoxedRefMut<'_, SegmentationModel>
fn as_raw_SegmentationModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ShiftLayerInt8Trait for BoxedRefMut<'_, ShiftLayerInt8>
impl ShiftLayerInt8Trait for BoxedRefMut<'_, ShiftLayerInt8>
fn as_raw_mut_ShiftLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ShiftLayerInt8TraitConst for BoxedRefMut<'_, ShiftLayerInt8>
impl ShiftLayerInt8TraitConst for BoxedRefMut<'_, ShiftLayerInt8>
fn as_raw_ShiftLayerInt8( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ShiftLayerTrait for BoxedRefMut<'_, ShiftLayer>
impl ShiftLayerTrait for BoxedRefMut<'_, ShiftLayer>
fn as_raw_mut_ShiftLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl ShiftLayerTraitConst for BoxedRefMut<'_, ShiftLayer>
impl ShiftLayerTraitConst for BoxedRefMut<'_, ShiftLayer>
fn as_raw_ShiftLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl ShuffleChannelLayerTrait for BoxedRefMut<'_, ShuffleChannelLayer>
impl ShuffleChannelLayerTrait for BoxedRefMut<'_, ShuffleChannelLayer>
source§impl SigmoidLayerTrait for BoxedRefMut<'_, SigmoidLayer>
impl SigmoidLayerTrait for BoxedRefMut<'_, SigmoidLayer>
fn as_raw_mut_SigmoidLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl SigmoidLayerTraitConst for BoxedRefMut<'_, SigmoidLayer>
impl SigmoidLayerTraitConst for BoxedRefMut<'_, SigmoidLayer>
fn as_raw_SigmoidLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl SliceLayerTrait for BoxedRefMut<'_, SliceLayer>
impl SliceLayerTrait for BoxedRefMut<'_, SliceLayer>
source§impl SliceLayerTraitConst for BoxedRefMut<'_, SliceLayer>
impl SliceLayerTraitConst for BoxedRefMut<'_, SliceLayer>
source§impl SoftmaxLayerInt8Trait for BoxedRefMut<'_, SoftmaxLayerInt8>
impl SoftmaxLayerInt8Trait for BoxedRefMut<'_, SoftmaxLayerInt8>
fn as_raw_mut_SoftmaxLayerInt8( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_output_sc(&mut self, val: f32)
fn set_output_zp(&mut self, val: i32)
source§impl SoftmaxLayerInt8TraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
impl SoftmaxLayerInt8TraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
source§impl SoftmaxLayerTrait for BoxedRefMut<'_, SoftmaxLayer>
impl SoftmaxLayerTrait for BoxedRefMut<'_, SoftmaxLayer>
fn as_raw_mut_SoftmaxLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_log_soft_max(&mut self, val: bool)
source§impl SoftmaxLayerTrait for BoxedRefMut<'_, SoftmaxLayerInt8>
impl SoftmaxLayerTrait for BoxedRefMut<'_, SoftmaxLayerInt8>
fn as_raw_mut_SoftmaxLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_log_soft_max(&mut self, val: bool)
source§impl SoftmaxLayerTraitConst for BoxedRefMut<'_, SoftmaxLayer>
impl SoftmaxLayerTraitConst for BoxedRefMut<'_, SoftmaxLayer>
fn as_raw_SoftmaxLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn log_soft_max(&self) -> bool
source§impl SoftmaxLayerTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
impl SoftmaxLayerTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>
fn as_raw_SoftmaxLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn log_soft_max(&self) -> bool
source§impl SparseMatConstIteratorTrait for BoxedRefMut<'_, SparseMatConstIterator>
impl SparseMatConstIteratorTrait for BoxedRefMut<'_, SparseMatConstIterator>
fn as_raw_mut_SparseMatConstIterator( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_hashidx(&mut self, val: size_t)
fn ptr_mut(&mut self) -> *mut u8
unsafe fn set_ptr(&mut self, val: *const u8)
source§fn set(&mut self, it: &impl SparseMatConstIteratorTraitConst) -> Result<()>
fn set(&mut self, it: &impl SparseMatConstIteratorTraitConst) -> Result<()>
the assignment operator
source§fn incr(&mut self) -> Result<SparseMatConstIterator>
fn incr(&mut self) -> Result<SparseMatConstIterator>
moves iterator to the next element
source§impl SparseMatConstIteratorTrait for BoxedRefMut<'_, SparseMatIterator>
impl SparseMatConstIteratorTrait for BoxedRefMut<'_, SparseMatIterator>
fn as_raw_mut_SparseMatConstIterator( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_hashidx(&mut self, val: size_t)
fn ptr_mut(&mut self) -> *mut u8
unsafe fn set_ptr(&mut self, val: *const u8)
source§fn set(&mut self, it: &impl SparseMatConstIteratorTraitConst) -> Result<()>
fn set(&mut self, it: &impl SparseMatConstIteratorTraitConst) -> Result<()>
the assignment operator
source§fn incr(&mut self) -> Result<SparseMatConstIterator>
fn incr(&mut self) -> Result<SparseMatConstIterator>
moves iterator to the next element
source§impl SparseMatConstIteratorTraitConst for BoxedRefMut<'_, SparseMatConstIterator>
impl SparseMatConstIteratorTraitConst for BoxedRefMut<'_, SparseMatConstIterator>
fn as_raw_SparseMatConstIterator( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn m(&self) -> SparseMat
fn hashidx(&self) -> size_t
fn ptr(&self) -> *const u8
source§fn node(&self) -> Result<SparseMat_Node>
fn node(&self) -> Result<SparseMat_Node>
returns the current node of the sparse matrix. it.node->idx is the current element index
source§impl SparseMatConstIteratorTraitConst for BoxedRefMut<'_, SparseMatIterator>
impl SparseMatConstIteratorTraitConst for BoxedRefMut<'_, SparseMatIterator>
fn as_raw_SparseMatConstIterator( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn m(&self) -> SparseMat
fn hashidx(&self) -> size_t
fn ptr(&self) -> *const u8
source§fn node(&self) -> Result<SparseMat_Node>
fn node(&self) -> Result<SparseMat_Node>
returns the current node of the sparse matrix. it.node->idx is the current element index
source§impl SparseMatIteratorTrait for BoxedRefMut<'_, SparseMatIterator>
impl SparseMatIteratorTrait for BoxedRefMut<'_, SparseMatIterator>
fn as_raw_mut_SparseMatIterator( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set(&mut self, it: &impl SparseMatIteratorTraitConst) -> Result<()>
fn set(&mut self, it: &impl SparseMatIteratorTraitConst) -> Result<()>
the assignment operator
source§fn incr(&mut self) -> Result<SparseMatIterator>
fn incr(&mut self) -> Result<SparseMatIterator>
moves iterator to the next element
source§impl SparseMatIteratorTraitConst for BoxedRefMut<'_, SparseMatIterator>
impl SparseMatIteratorTraitConst for BoxedRefMut<'_, SparseMatIterator>
fn as_raw_SparseMatIterator( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn node(&self) -> Result<SparseMat_Node>
fn node(&self) -> Result<SparseMat_Node>
returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)
source§impl SparseMatTrait for BoxedRefMut<'_, SparseMat>
impl SparseMatTrait for BoxedRefMut<'_, SparseMat>
fn as_raw_mut_SparseMat( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_flags(&mut self, val: i32)
fn hdr(&mut self) -> SparseMat_Hdr
fn set_hdr(&mut self, val: &impl SparseMat_HdrTraitConst)
source§fn set(&mut self, m: &impl SparseMatTraitConst) -> Result<()>
fn set(&mut self, m: &impl SparseMatTraitConst) -> Result<()>
assignment operator. This is O(1) operation, i.e. no data is copied
source§fn set_mat(&mut self, m: &impl MatTraitConst) -> Result<()>
fn set_mat(&mut self, m: &impl MatTraitConst) -> Result<()>
equivalent to the corresponding constructor
source§fn create(&mut self, _sizes: &[i32], _type: i32) -> Result<()>
fn create(&mut self, _sizes: &[i32], _type: i32) -> Result<()>
reallocates sparse matrix. Read more
source§fn clear(&mut self) -> Result<()>
fn clear(&mut self) -> Result<()>
sets all the sparse matrix elements to 0, which means clearing the hash table.
source§unsafe fn addref(&mut self) -> Result<()>
unsafe fn addref(&mut self) -> Result<()>
manually increments the reference counter to the header.
unsafe fn release(&mut self) -> Result<()>
source§fn ptr(
&mut self,
i0: i32,
create_missing: bool,
hashval: &mut size_t,
) -> Result<*mut u8>
fn ptr( &mut self, i0: i32, create_missing: bool, hashval: &mut size_t, ) -> Result<*mut u8>
specialized variants for 1D, 2D, 3D cases and the generic_type one for n-D case.
return pointer to the matrix element.
- if the element is there (it’s non-zero), the pointer to it is returned
- if it’s not there and createMissing=false, NULL pointer is returned
- if it’s not there and createMissing=true, then the new element
is created and initialized with 0. Pointer to it is returned
- if the optional hashval pointer is not NULL, the element hash value is
not computed, but *hashval is taken instead. Read more
source§fn ptr_def(&mut self, i0: i32, create_missing: bool) -> Result<*mut u8>
fn ptr_def(&mut self, i0: i32, create_missing: bool) -> Result<*mut u8>
specialized variants for 1D, 2D, 3D cases and the generic_type one for n-D case.
return pointer to the matrix element.
- if the element is there (it’s non-zero), the pointer to it is returned
- if it’s not there and createMissing=false, NULL pointer is returned
- if it’s not there and createMissing=true, then the new element
is created and initialized with 0. Pointer to it is returned
- if the optional hashval pointer is not NULL, the element hash value is
not computed, but *hashval is taken instead. Read more
source§fn ptr_1(
&mut self,
i0: i32,
i1: i32,
create_missing: bool,
hashval: &mut size_t,
) -> Result<*mut u8>
fn ptr_1( &mut self, i0: i32, i1: i32, create_missing: bool, hashval: &mut size_t, ) -> Result<*mut u8>
returns pointer to the specified element (2D case) Read more
source§fn ptr_def_1(
&mut self,
i0: i32,
i1: i32,
create_missing: bool,
) -> Result<*mut u8>
fn ptr_def_1( &mut self, i0: i32, i1: i32, create_missing: bool, ) -> Result<*mut u8>
returns pointer to the specified element (2D case) Read more
source§fn ptr_2(
&mut self,
i0: i32,
i1: i32,
i2: i32,
create_missing: bool,
hashval: &mut size_t,
) -> Result<*mut u8>
fn ptr_2( &mut self, i0: i32, i1: i32, i2: i32, create_missing: bool, hashval: &mut size_t, ) -> Result<*mut u8>
returns pointer to the specified element (3D case) Read more
source§fn ptr_def_2(
&mut self,
i0: i32,
i1: i32,
i2: i32,
create_missing: bool,
) -> Result<*mut u8>
fn ptr_def_2( &mut self, i0: i32, i1: i32, i2: i32, create_missing: bool, ) -> Result<*mut u8>
returns pointer to the specified element (3D case) Read more
source§fn ptr_3(
&mut self,
idx: &i32,
create_missing: bool,
hashval: &mut size_t,
) -> Result<*mut u8>
fn ptr_3( &mut self, idx: &i32, create_missing: bool, hashval: &mut size_t, ) -> Result<*mut u8>
returns pointer to the specified element (nD case) Read more
source§fn ptr_def_3(&mut self, idx: &i32, create_missing: bool) -> Result<*mut u8>
fn ptr_def_3(&mut self, idx: &i32, create_missing: bool) -> Result<*mut u8>
returns pointer to the specified element (nD case) Read more
source§fn erase(&mut self, i0: i32, i1: i32, hashval: &mut size_t) -> Result<()>
fn erase(&mut self, i0: i32, i1: i32, hashval: &mut size_t) -> Result<()>
erases the specified element (2D case) Read more
source§fn erase_def(&mut self, i0: i32, i1: i32) -> Result<()>
fn erase_def(&mut self, i0: i32, i1: i32) -> Result<()>
erases the specified element (2D case) Read more
source§fn erase_1(
&mut self,
i0: i32,
i1: i32,
i2: i32,
hashval: &mut size_t,
) -> Result<()>
fn erase_1( &mut self, i0: i32, i1: i32, i2: i32, hashval: &mut size_t, ) -> Result<()>
erases the specified element (3D case) Read more
source§fn erase_def_1(&mut self, i0: i32, i1: i32, i2: i32) -> Result<()>
fn erase_def_1(&mut self, i0: i32, i1: i32, i2: i32) -> Result<()>
erases the specified element (3D case) Read more
source§fn erase_2(&mut self, idx: &i32, hashval: &mut size_t) -> Result<()>
fn erase_2(&mut self, idx: &i32, hashval: &mut size_t) -> Result<()>
erases the specified element (nD case) Read more
source§fn erase_def_2(&mut self, idx: &i32) -> Result<()>
fn erase_def_2(&mut self, idx: &i32) -> Result<()>
erases the specified element (nD case) Read more
source§fn begin_mut(&mut self) -> Result<SparseMatIterator>
fn begin_mut(&mut self) -> Result<SparseMatIterator>
return the sparse matrix iterator pointing to the first sparse matrix element Read more
source§fn end_mut(&mut self) -> Result<SparseMatIterator>
fn end_mut(&mut self) -> Result<SparseMatIterator>
return the sparse matrix iterator pointing to the element following the last sparse matrix element Read more
source§fn node_1(&mut self, nidx: size_t) -> Result<SparseMat_Node>
fn node_1(&mut self, nidx: size_t) -> Result<SparseMat_Node>
/////////// some internal-use methods ///////////////
fn new_node(&mut self, idx: &i32, hashval: size_t) -> Result<*mut u8>
fn remove_node( &mut self, hidx: size_t, nidx: size_t, previdx: size_t, ) -> Result<()>
fn resize_hash_tab(&mut self, newsize: size_t) -> Result<()>
source§impl SparseMatTraitConst for BoxedRefMut<'_, SparseMat>
impl SparseMatTraitConst for BoxedRefMut<'_, SparseMat>
fn as_raw_SparseMat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn flags(&self) -> i32
source§fn copy_to(&self, m: &mut impl SparseMatTrait) -> Result<()>
fn copy_to(&self, m: &mut impl SparseMatTrait) -> Result<()>
copies all the data to the destination matrix. All the previous content of m is erased
source§fn copy_to_mat(&self, m: &mut impl MatTrait) -> Result<()>
fn copy_to_mat(&self, m: &mut impl MatTrait) -> Result<()>
converts sparse matrix to dense matrix.
source§fn convert_to(
&self,
m: &mut impl SparseMatTrait,
rtype: i32,
alpha: f64,
) -> Result<()>
fn convert_to( &self, m: &mut impl SparseMatTrait, rtype: i32, alpha: f64, ) -> Result<()>
multiplies all the matrix elements by the specified scale factor alpha and converts the results to the specified data type Read more
source§fn convert_to_def(&self, m: &mut impl SparseMatTrait, rtype: i32) -> Result<()>
fn convert_to_def(&self, m: &mut impl SparseMatTrait, rtype: i32) -> Result<()>
multiplies all the matrix elements by the specified scale factor alpha and converts the results to the specified data type Read more
source§fn convert_to_1(
&self,
m: &mut impl MatTrait,
rtype: i32,
alpha: f64,
beta: f64,
) -> Result<()>
fn convert_to_1( &self, m: &mut impl MatTrait, rtype: i32, alpha: f64, beta: f64, ) -> Result<()>
converts sparse matrix to dense n-dim matrix with optional type conversion and scaling. Read more
source§fn convert_to_def_1(&self, m: &mut impl MatTrait, rtype: i32) -> Result<()>
fn convert_to_def_1(&self, m: &mut impl MatTrait, rtype: i32) -> Result<()>
converts sparse matrix to dense n-dim matrix with optional type conversion and scaling. Read more
source§fn assign_to(&self, m: &mut impl SparseMatTrait, typ: i32) -> Result<()>
fn assign_to(&self, m: &mut impl SparseMatTrait, typ: i32) -> Result<()>
C++ default parameters Read more
source§fn assign_to_def(&self, m: &mut impl SparseMatTrait) -> Result<()>
fn assign_to_def(&self, m: &mut impl SparseMatTrait) -> Result<()>
Note Read more
source§fn elem_size(&self) -> size_t
fn elem_size(&self) -> size_t
returns the size of each element in bytes (not including the overhead - the space occupied by SparseMat::Node elements)
source§fn elem_size1(&self) -> size_t
fn elem_size1(&self) -> size_t
returns elemSize()/channels()
source§fn size(&self) -> Result<*const i32>
fn size(&self) -> Result<*const i32>
returns the array of sizes, or NULL if the matrix is not allocated
source§fn nzcount(&self) -> Result<size_t>
fn nzcount(&self) -> Result<size_t>
returns the number of non-zero elements (=the number of hash table nodes)
source§fn hash_1(&self, i0: i32, i1: i32) -> Result<size_t>
fn hash_1(&self, i0: i32, i1: i32) -> Result<size_t>
computes the element hash value (2D case)
source§fn hash_2(&self, i0: i32, i1: i32, i2: i32) -> Result<size_t>
fn hash_2(&self, i0: i32, i1: i32, i2: i32) -> Result<size_t>
computes the element hash value (3D case)
source§fn begin(&self) -> Result<SparseMatConstIterator>
fn begin(&self) -> Result<SparseMatConstIterator>
returns the read-only sparse matrix iterator at the matrix beginning
source§fn end(&self) -> Result<SparseMatConstIterator>
fn end(&self) -> Result<SparseMatConstIterator>
returns the read-only sparse matrix iterator at the matrix end
fn node(&self, nidx: size_t) -> Result<SparseMat_Node>
source§impl SparseMat_HdrTrait for BoxedRefMut<'_, SparseMat_Hdr>
impl SparseMat_HdrTrait for BoxedRefMut<'_, SparseMat_Hdr>
fn as_raw_mut_SparseMat_Hdr( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_refcount(&mut self, val: i32)
fn set_dims(&mut self, val: i32)
fn set_value_offset(&mut self, val: i32)
fn set_node_size(&mut self, val: size_t)
fn set_node_count(&mut self, val: size_t)
fn set_free_list(&mut self, val: size_t)
fn set_pool(&mut self, val: Vector<u8>)
fn set_hashtab(&mut self, val: Vector<size_t>)
fn size_mut(&mut self) -> &mut [i32; 32]
fn clear(&mut self) -> Result<()>
source§impl SparseMat_HdrTraitConst for BoxedRefMut<'_, SparseMat_Hdr>
impl SparseMat_HdrTraitConst for BoxedRefMut<'_, SparseMat_Hdr>
fn as_raw_SparseMat_Hdr( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn refcount(&self) -> i32
fn dims(&self) -> i32
fn value_offset(&self) -> i32
fn node_size(&self) -> size_t
fn node_count(&self) -> size_t
fn free_list(&self) -> size_t
fn pool(&self) -> Vector<u8>
fn hashtab(&self) -> Vector<size_t>
fn size(&self) -> &[i32; 32]
source§impl SparseMat_NodeTrait for BoxedRefMut<'_, SparseMat_Node>
impl SparseMat_NodeTrait for BoxedRefMut<'_, SparseMat_Node>
fn as_raw_mut_SparseMat_Node( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_hashval(&mut self, val: size_t)
fn set_hashval(&mut self, val: size_t)
hash value
source§impl SparseMat_NodeTraitConst for BoxedRefMut<'_, SparseMat_Node>
impl SparseMat_NodeTraitConst for BoxedRefMut<'_, SparseMat_Node>
source§impl SplitLayerTrait for BoxedRefMut<'_, SplitLayer>
impl SplitLayerTrait for BoxedRefMut<'_, SplitLayer>
fn as_raw_mut_SplitLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_outputs_count(&mut self, val: i32)
fn set_outputs_count(&mut self, val: i32)
Number of copies that will be produced (is ignored when negative).
source§impl SplitLayerTraitConst for BoxedRefMut<'_, SplitLayer>
impl SplitLayerTraitConst for BoxedRefMut<'_, SplitLayer>
fn as_raw_SplitLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn outputs_count(&self) -> i32
fn outputs_count(&self) -> i32
Number of copies that will be produced (is ignored when negative).
source§impl StreamTrait for BoxedRefMut<'_, Stream>
impl StreamTrait for BoxedRefMut<'_, Stream>
fn as_raw_mut_Stream( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn wait_for_completion(&mut self) -> Result<()>
fn wait_for_completion(&mut self) -> Result<()>
Blocks the current CPU thread until all operations in the stream are complete.
source§fn wait_event(&mut self, event: &impl EventTraitConst) -> Result<()>
fn wait_event(&mut self, event: &impl EventTraitConst) -> Result<()>
Makes a compute stream wait on an event.
source§fn enqueue_host_callback(
&mut self,
callback: Stream_StreamCallback,
) -> Result<()>
fn enqueue_host_callback( &mut self, callback: Stream_StreamCallback, ) -> Result<()>
Adds a callback to be called on the host after all currently enqueued items in the stream have
completed. Read more
source§impl StreamTraitConst for BoxedRefMut<'_, Stream>
impl StreamTraitConst for BoxedRefMut<'_, Stream>
source§impl Subdiv2DTrait for BoxedRefMut<'_, Subdiv2D>
impl Subdiv2DTrait for BoxedRefMut<'_, Subdiv2D>
fn as_raw_mut_Subdiv2D( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn init_delaunay(&mut self, rect: Rect) -> Result<()>
fn init_delaunay(&mut self, rect: Rect) -> Result<()>
Creates a new empty Delaunay subdivision Read more
source§fn insert(&mut self, pt: Point2f) -> Result<i32>
fn insert(&mut self, pt: Point2f) -> Result<i32>
Insert a single point into a Delaunay triangulation. Read more
source§fn insert_multiple(&mut self, ptvec: &Vector<Point2f>) -> Result<()>
fn insert_multiple(&mut self, ptvec: &Vector<Point2f>) -> Result<()>
Insert multiple points into a Delaunay triangulation. Read more
source§fn locate(
&mut self,
pt: Point2f,
edge: &mut i32,
vertex: &mut i32,
) -> Result<i32>
fn locate( &mut self, pt: Point2f, edge: &mut i32, vertex: &mut i32, ) -> Result<i32>
Returns the location of a point within a Delaunay triangulation. Read more
source§fn find_nearest(&mut self, pt: Point2f, nearest_pt: &mut Point2f) -> Result<i32>
fn find_nearest(&mut self, pt: Point2f, nearest_pt: &mut Point2f) -> Result<i32>
Finds the subdivision vertex closest to the given point. Read more
source§impl Subdiv2DTraitConst for BoxedRefMut<'_, Subdiv2D>
impl Subdiv2DTraitConst for BoxedRefMut<'_, Subdiv2D>
fn as_raw_Subdiv2D(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_edge_list(&self, edge_list: &mut Vector<Vec4f>) -> Result<()>
fn get_edge_list(&self, edge_list: &mut Vector<Vec4f>) -> Result<()>
Returns a list of all edges. Read more
source§fn get_leading_edge_list(
&self,
leading_edge_list: &mut Vector<i32>,
) -> Result<()>
fn get_leading_edge_list( &self, leading_edge_list: &mut Vector<i32>, ) -> Result<()>
Returns a list of the leading edge ID connected to each triangle. Read more
source§fn get_triangle_list(&self, triangle_list: &mut Vector<Vec6f>) -> Result<()>
fn get_triangle_list(&self, triangle_list: &mut Vector<Vec6f>) -> Result<()>
Returns a list of all triangles. Read more
source§fn get_vertex(&self, vertex: i32, first_edge: &mut i32) -> Result<Point2f>
fn get_vertex(&self, vertex: i32, first_edge: &mut i32) -> Result<Point2f>
Returns vertex location from vertex ID. Read more
source§fn get_vertex_def(&self, vertex: i32) -> Result<Point2f>
fn get_vertex_def(&self, vertex: i32) -> Result<Point2f>
Returns vertex location from vertex ID. Read more
source§fn get_edge(&self, edge: i32, next_edge_type: i32) -> Result<i32>
fn get_edge(&self, edge: i32, next_edge_type: i32) -> Result<i32>
Returns one of the edges related to the given edge. Read more
source§fn next_edge(&self, edge: i32) -> Result<i32>
fn next_edge(&self, edge: i32) -> Result<i32>
Returns next edge around the edge origin. Read more
source§fn rotate_edge(&self, edge: i32, rotate: i32) -> Result<i32>
fn rotate_edge(&self, edge: i32, rotate: i32) -> Result<i32>
Returns another edge of the same quad-edge. Read more
fn sym_edge(&self, edge: i32) -> Result<i32>
source§fn edge_org(&self, edge: i32, orgpt: &mut Point2f) -> Result<i32>
fn edge_org(&self, edge: i32, orgpt: &mut Point2f) -> Result<i32>
Returns the edge origin. Read more
source§impl SwishLayerTrait for BoxedRefMut<'_, SwishLayer>
impl SwishLayerTrait for BoxedRefMut<'_, SwishLayer>
fn as_raw_mut_SwishLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl SwishLayerTraitConst for BoxedRefMut<'_, SwishLayer>
impl SwishLayerTraitConst for BoxedRefMut<'_, SwishLayer>
fn as_raw_SwishLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl TanHLayerTrait for BoxedRefMut<'_, TanHLayer>
impl TanHLayerTrait for BoxedRefMut<'_, TanHLayer>
fn as_raw_mut_TanHLayer( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl TanHLayerTraitConst for BoxedRefMut<'_, TanHLayer>
impl TanHLayerTraitConst for BoxedRefMut<'_, TanHLayer>
fn as_raw_TanHLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl TargetArchsTrait for BoxedRefMut<'_, TargetArchs>
impl TargetArchsTrait for BoxedRefMut<'_, TargetArchs>
fn as_raw_mut_TargetArchs( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl TargetArchsTraitConst for BoxedRefMut<'_, TargetArchs>
impl TargetArchsTraitConst for BoxedRefMut<'_, TargetArchs>
fn as_raw_TargetArchs(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel>
impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel>
fn as_raw_mut_TextDetectionModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel_DB>
impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel_DB>
fn as_raw_mut_TextDetectionModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel_EAST>
impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel_EAST>
fn as_raw_mut_TextDetectionModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel>
impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel>
fn as_raw_TextDetectionModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn detect_with_confidences(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<Vector<Point>>,
confidences: &mut Vector<f32>,
) -> Result<()>
fn detect_with_confidences( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, confidences: &mut Vector<f32>, ) -> Result<()>
Performs detection Read more
source§fn detect(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<Vector<Point>>,
) -> Result<()>
fn detect( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, ) -> Result<()>
Performs detection Read more
source§fn detect_text_rectangles(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<RotatedRect>,
confidences: &mut Vector<f32>,
) -> Result<()>
fn detect_text_rectangles( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, confidences: &mut Vector<f32>, ) -> Result<()>
Performs detection Read more
source§fn detect_text_rectangles_1(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<RotatedRect>,
) -> Result<()>
fn detect_text_rectangles_1( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, ) -> Result<()>
Performs detection Read more
source§impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>
impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>
fn as_raw_TextDetectionModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn detect_with_confidences(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<Vector<Point>>,
confidences: &mut Vector<f32>,
) -> Result<()>
fn detect_with_confidences( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, confidences: &mut Vector<f32>, ) -> Result<()>
Performs detection Read more
source§fn detect(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<Vector<Point>>,
) -> Result<()>
fn detect( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, ) -> Result<()>
Performs detection Read more
source§fn detect_text_rectangles(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<RotatedRect>,
confidences: &mut Vector<f32>,
) -> Result<()>
fn detect_text_rectangles( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, confidences: &mut Vector<f32>, ) -> Result<()>
Performs detection Read more
source§fn detect_text_rectangles_1(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<RotatedRect>,
) -> Result<()>
fn detect_text_rectangles_1( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, ) -> Result<()>
Performs detection Read more
source§impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>
impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>
fn as_raw_TextDetectionModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn detect_with_confidences(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<Vector<Point>>,
confidences: &mut Vector<f32>,
) -> Result<()>
fn detect_with_confidences( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, confidences: &mut Vector<f32>, ) -> Result<()>
Performs detection Read more
source§fn detect(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<Vector<Point>>,
) -> Result<()>
fn detect( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, ) -> Result<()>
Performs detection Read more
source§fn detect_text_rectangles(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<RotatedRect>,
confidences: &mut Vector<f32>,
) -> Result<()>
fn detect_text_rectangles( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, confidences: &mut Vector<f32>, ) -> Result<()>
Performs detection Read more
source§fn detect_text_rectangles_1(
&self,
frame: &impl ToInputArray,
detections: &mut Vector<RotatedRect>,
) -> Result<()>
fn detect_text_rectangles_1( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, ) -> Result<()>
Performs detection Read more
source§impl TextDetectionModel_DBTrait for BoxedRefMut<'_, TextDetectionModel_DB>
impl TextDetectionModel_DBTrait for BoxedRefMut<'_, TextDetectionModel_DB>
fn as_raw_mut_TextDetectionModel_DB( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_binary_threshold( &mut self, binary_threshold: f32, ) -> Result<TextDetectionModel_DB>
fn set_polygon_threshold( &mut self, polygon_threshold: f32, ) -> Result<TextDetectionModel_DB>
fn set_unclip_ratio( &mut self, unclip_ratio: f64, ) -> Result<TextDetectionModel_DB>
fn set_max_candidates( &mut self, max_candidates: i32, ) -> Result<TextDetectionModel_DB>
source§impl TextDetectionModel_DBTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>
impl TextDetectionModel_DBTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>
fn as_raw_TextDetectionModel_DB( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_binary_threshold(&self) -> Result<f32>
fn get_polygon_threshold(&self) -> Result<f32>
fn get_unclip_ratio(&self) -> Result<f64>
fn get_max_candidates(&self) -> Result<i32>
source§impl TextDetectionModel_EASTTrait for BoxedRefMut<'_, TextDetectionModel_EAST>
impl TextDetectionModel_EASTTrait for BoxedRefMut<'_, TextDetectionModel_EAST>
fn as_raw_mut_TextDetectionModel_EAST( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_confidence_threshold(
&mut self,
conf_threshold: f32,
) -> Result<TextDetectionModel_EAST>
fn set_confidence_threshold( &mut self, conf_threshold: f32, ) -> Result<TextDetectionModel_EAST>
Set the detection confidence threshold Read more
source§fn set_nms_threshold(
&mut self,
nms_threshold: f32,
) -> Result<TextDetectionModel_EAST>
fn set_nms_threshold( &mut self, nms_threshold: f32, ) -> Result<TextDetectionModel_EAST>
Set the detection NMS filter threshold Read more
source§impl TextDetectionModel_EASTTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>
impl TextDetectionModel_EASTTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>
fn as_raw_TextDetectionModel_EAST( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_confidence_threshold(&self) -> Result<f32>
fn get_confidence_threshold(&self) -> Result<f32>
Get the detection confidence threshold
source§fn get_nms_threshold(&self) -> Result<f32>
fn get_nms_threshold(&self) -> Result<f32>
Get the detection confidence threshold
source§impl TextRecognitionModelTrait for BoxedRefMut<'_, TextRecognitionModel>
impl TextRecognitionModelTrait for BoxedRefMut<'_, TextRecognitionModel>
fn as_raw_mut_TextRecognitionModel( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_decode_type(&mut self, decode_type: &str) -> Result<TextRecognitionModel>
fn set_decode_type(&mut self, decode_type: &str) -> Result<TextRecognitionModel>
Set the decoding method of translating the network output into string Read more
source§fn set_decode_opts_ctc_prefix_beam_search(
&mut self,
beam_size: i32,
voc_prune_size: i32,
) -> Result<TextRecognitionModel>
fn set_decode_opts_ctc_prefix_beam_search( &mut self, beam_size: i32, voc_prune_size: i32, ) -> Result<TextRecognitionModel>
Set the decoding method options for
"CTC-prefix-beam-search" decode usage Read moresource§fn set_decode_opts_ctc_prefix_beam_search_def(
&mut self,
beam_size: i32,
) -> Result<TextRecognitionModel>
fn set_decode_opts_ctc_prefix_beam_search_def( &mut self, beam_size: i32, ) -> Result<TextRecognitionModel>
Set the decoding method options for
"CTC-prefix-beam-search" decode usage Read moresource§fn set_vocabulary(
&mut self,
vocabulary: &Vector<String>,
) -> Result<TextRecognitionModel>
fn set_vocabulary( &mut self, vocabulary: &Vector<String>, ) -> Result<TextRecognitionModel>
Set the vocabulary for recognition. Read more
source§impl TextRecognitionModelTraitConst for BoxedRefMut<'_, TextRecognitionModel>
impl TextRecognitionModelTraitConst for BoxedRefMut<'_, TextRecognitionModel>
fn as_raw_TextRecognitionModel( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_vocabulary(&self) -> Result<Vector<String>>
fn get_vocabulary(&self) -> Result<Vector<String>>
Get the vocabulary for recognition. Read more
source§fn recognize(&self, frame: &impl ToInputArray) -> Result<String>
fn recognize(&self, frame: &impl ToInputArray) -> Result<String>
Given the @p input frame, create input blob, run net and return recognition result Read more
source§fn recognize_1(
&self,
frame: &impl ToInputArray,
roi_rects: &impl ToInputArray,
results: &mut Vector<String>,
) -> Result<()>
fn recognize_1( &self, frame: &impl ToInputArray, roi_rects: &impl ToInputArray, results: &mut Vector<String>, ) -> Result<()>
Given the @p input frame, create input blob, run net and return recognition result Read more
source§impl Texture2DTrait for BoxedRefMut<'_, Texture2D>
impl Texture2DTrait for BoxedRefMut<'_, Texture2D>
fn as_raw_mut_Texture2D( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn create(
&mut self,
arows: i32,
acols: i32,
aformat: Texture2D_Format,
auto_release: bool,
) -> Result<()>
fn create( &mut self, arows: i32, acols: i32, aformat: Texture2D_Format, auto_release: bool, ) -> Result<()>
Allocates memory for ogl::Texture2D object. Read more
source§fn create_def(
&mut self,
arows: i32,
acols: i32,
aformat: Texture2D_Format,
) -> Result<()>
fn create_def( &mut self, arows: i32, acols: i32, aformat: Texture2D_Format, ) -> Result<()>
Allocates memory for ogl::Texture2D object. Read more
source§fn create_1(
&mut self,
asize: Size,
aformat: Texture2D_Format,
auto_release: bool,
) -> Result<()>
fn create_1( &mut self, asize: Size, aformat: Texture2D_Format, auto_release: bool, ) -> Result<()>
Allocates memory for ogl::Texture2D object. Read more
source§fn create_def_1(&mut self, asize: Size, aformat: Texture2D_Format) -> Result<()>
fn create_def_1(&mut self, asize: Size, aformat: Texture2D_Format) -> Result<()>
@overload Read more
source§fn release(&mut self) -> Result<()>
fn release(&mut self) -> Result<()>
Decrements the reference counter and destroys the texture object if needed. Read more
source§fn copy_from(
&mut self,
arr: &impl ToInputArray,
auto_release: bool,
) -> Result<()>
fn copy_from( &mut self, arr: &impl ToInputArray, auto_release: bool, ) -> Result<()>
Copies from host/device memory to OpenGL texture. Read more
source§fn copy_from_def(&mut self, arr: &impl ToInputArray) -> Result<()>
fn copy_from_def(&mut self, arr: &impl ToInputArray) -> Result<()>
Copies from host/device memory to OpenGL texture. Read more
source§impl Texture2DTraitConst for BoxedRefMut<'_, Texture2D>
impl Texture2DTraitConst for BoxedRefMut<'_, Texture2D>
fn as_raw_Texture2D(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn copy_to(
&self,
arr: &mut impl ToOutputArray,
ddepth: i32,
auto_release: bool,
) -> Result<()>
fn copy_to( &self, arr: &mut impl ToOutputArray, ddepth: i32, auto_release: bool, ) -> Result<()>
Copies from OpenGL texture to host/device memory or another OpenGL texture object. Read more
source§fn copy_to_def(&self, arr: &mut impl ToOutputArray) -> Result<()>
fn copy_to_def(&self, arr: &mut impl ToOutputArray) -> Result<()>
Copies from OpenGL texture to host/device memory or another OpenGL texture object. Read more
source§fn bind(&self) -> Result<()>
fn bind(&self) -> Result<()>
Binds texture to current active texture unit for GL_TEXTURE_2D target.
fn rows(&self) -> Result<i32>
fn cols(&self) -> Result<i32>
fn size(&self) -> Result<Size>
fn empty(&self) -> Result<bool>
fn format(&self) -> Result<Texture2D_Format>
source§impl TickMeterTrait for BoxedRefMut<'_, TickMeter>
impl TickMeterTrait for BoxedRefMut<'_, TickMeter>
source§impl TickMeterTraitConst for BoxedRefMut<'_, TickMeter>
impl TickMeterTraitConst for BoxedRefMut<'_, TickMeter>
fn as_raw_TickMeter(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn get_time_ticks(&self) -> Result<i64>
fn get_time_ticks(&self) -> Result<i64>
returns counted ticks.
source§fn get_time_micro(&self) -> Result<f64>
fn get_time_micro(&self) -> Result<f64>
returns passed time in microseconds.
source§fn get_time_milli(&self) -> Result<f64>
fn get_time_milli(&self) -> Result<f64>
returns passed time in milliseconds.
source§fn get_time_sec(&self) -> Result<f64>
fn get_time_sec(&self) -> Result<f64>
returns passed time in seconds.
source§fn get_counter(&self) -> Result<i64>
fn get_counter(&self) -> Result<i64>
returns internal counter value.
source§fn get_avg_time_sec(&self) -> Result<f64>
fn get_avg_time_sec(&self) -> Result<f64>
returns average time in seconds
source§fn get_avg_time_milli(&self) -> Result<f64>
fn get_avg_time_milli(&self) -> Result<f64>
returns average time in milliseconds
source§impl TimerTrait for BoxedRefMut<'_, Timer>
impl TimerTrait for BoxedRefMut<'_, Timer>
source§impl TimerTraitConst for BoxedRefMut<'_, Timer>
impl TimerTraitConst for BoxedRefMut<'_, Timer>
fn as_raw_Timer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn duration_ns(&self) -> Result<u64>
source§impl<T: Boxed + ToInputArray> ToInputArray for &BoxedRefMut<'_, T>
impl<T: Boxed + ToInputArray> ToInputArray for &BoxedRefMut<'_, T>
fn input_array(&self) -> Result<BoxedRef<'_, _InputArray>>
source§impl<T: Boxed + ToInputArray> ToInputArray for BoxedRefMut<'_, T>
impl<T: Boxed + ToInputArray> ToInputArray for BoxedRefMut<'_, T>
fn input_array(&self) -> Result<BoxedRef<'_, _InputArray>>
source§impl<T: Boxed + ToInputOutputArray> ToInputOutputArray for &mut BoxedRefMut<'_, T>
impl<T: Boxed + ToInputOutputArray> ToInputOutputArray for &mut BoxedRefMut<'_, T>
fn input_output_array(&mut self) -> Result<BoxedRefMut<'_, _InputOutputArray>>
source§impl<T: Boxed + ToInputOutputArray> ToInputOutputArray for BoxedRefMut<'_, T>
impl<T: Boxed + ToInputOutputArray> ToInputOutputArray for BoxedRefMut<'_, T>
fn input_output_array(&mut self) -> Result<BoxedRefMut<'_, _InputOutputArray>>
source§impl<T: Boxed + ToOutputArray> ToOutputArray for &mut BoxedRefMut<'_, T>
impl<T: Boxed + ToOutputArray> ToOutputArray for &mut BoxedRefMut<'_, T>
fn output_array(&mut self) -> Result<BoxedRefMut<'_, _OutputArray>>
source§impl<T: Boxed + ToOutputArray> ToOutputArray for BoxedRefMut<'_, T>
impl<T: Boxed + ToOutputArray> ToOutputArray for BoxedRefMut<'_, T>
fn output_array(&mut self) -> Result<BoxedRefMut<'_, _OutputArray>>
source§impl UMatDataTrait for BoxedRefMut<'_, UMatData>
impl UMatDataTrait for BoxedRefMut<'_, UMatData>
fn as_raw_mut_UMatData( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
fn set_urefcount(&mut self, val: i32)
fn set_refcount(&mut self, val: i32)
fn data_mut(&mut self) -> *mut u8
unsafe fn set_data(&mut self, val: *const u8)
fn origdata_mut(&mut self) -> *mut u8
unsafe fn set_origdata(&mut self, val: *const u8)
fn set_size(&mut self, val: size_t)
fn set_flags(&mut self, val: UMatData_MemoryFlag)
fn handle(&mut self) -> *mut c_void
unsafe fn set_handle(&mut self, val: *const c_void)
fn userdata(&mut self) -> *mut c_void
unsafe fn set_userdata(&mut self, val: *const c_void)
fn set_allocator_flags_(&mut self, val: i32)
fn set_mapcount(&mut self, val: i32)
fn original_umat_data(&mut self) -> UMatData
fn set_original_umat_data(&mut self, val: &impl UMatDataTraitConst)
fn lock(&mut self) -> Result<()>
fn unlock(&mut self) -> Result<()>
fn mark_host_copy_obsolete(&mut self, flag: bool) -> Result<()>
fn mark_device_copy_obsolete(&mut self, flag: bool) -> Result<()>
fn mark_device_mem_mapped(&mut self, flag: bool) -> Result<()>
source§impl UMatDataTraitConst for BoxedRefMut<'_, UMatData>
impl UMatDataTraitConst for BoxedRefMut<'_, UMatData>
fn as_raw_UMatData(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn urefcount(&self) -> i32
fn refcount(&self) -> i32
fn data(&self) -> *const u8
fn origdata(&self) -> *const u8
fn size(&self) -> size_t
fn flags(&self) -> UMatData_MemoryFlag
fn allocator_flags_(&self) -> i32
fn mapcount(&self) -> i32
fn host_copy_obsolete(&self) -> Result<bool>
fn device_copy_obsolete(&self) -> Result<bool>
fn device_mem_mapped(&self) -> Result<bool>
fn copy_on_map(&self) -> Result<bool>
fn temp_umat(&self) -> Result<bool>
fn temp_copied_umat(&self) -> Result<bool>
source§impl UMatTrait for BoxedRefMut<'_, UMat>
impl UMatTrait for BoxedRefMut<'_, UMat>
fn as_raw_mut_UMat( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn set_rows(&mut self, val: i32)
fn set_rows(&mut self, val: i32)
number of rows in the matrix; -1 when the matrix has more than 2 dimensions
source§fn set_cols(&mut self, val: i32)
fn set_cols(&mut self, val: i32)
number of columns in the matrix; -1 when the matrix has more than 2 dimensions
source§fn set_usage_flags(&mut self, val: UMatUsageFlags)
fn set_usage_flags(&mut self, val: UMatUsageFlags)
usage flags for allocator; recommend do not set directly, instead set during construct/create/getUMat
source§fn set_u(&mut self, val: &impl UMatDataTraitConst)
fn set_u(&mut self, val: &impl UMatDataTraitConst)
black-box container of UMat data
source§fn set_offset(&mut self, val: size_t)
fn set_offset(&mut self, val: size_t)
offset of the submatrix (or 0)
source§fn set_size(&mut self, val: MatSize)
fn set_size(&mut self, val: MatSize)
dimensional size of the matrix; accessible in various formats
source§fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, UMat>>
fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, UMat>>
returns a new matrix header for the specified row
source§fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, UMat>>
fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, UMat>>
returns a new matrix header for the specified column
source§fn row_bounds_mut(
&mut self,
startrow: i32,
endrow: i32,
) -> Result<BoxedRefMut<'_, UMat>>
fn row_bounds_mut( &mut self, startrow: i32, endrow: i32, ) -> Result<BoxedRefMut<'_, UMat>>
… for the specified row span
fn row_range_mut( &mut self, r: &impl RangeTraitConst, ) -> Result<BoxedRefMut<'_, UMat>>
source§fn col_bounds_mut(
&mut self,
startcol: i32,
endcol: i32,
) -> Result<BoxedRefMut<'_, UMat>>
fn col_bounds_mut( &mut self, startcol: i32, endcol: i32, ) -> Result<BoxedRefMut<'_, UMat>>
… for the specified column span
fn col_range_mut( &mut self, r: &impl RangeTraitConst, ) -> Result<BoxedRefMut<'_, UMat>>
source§fn diag_def_mut(&mut self) -> Result<BoxedRefMut<'_, UMat>>
fn diag_def_mut(&mut self) -> Result<BoxedRefMut<'_, UMat>>
… for the specified diagonal
(d=0 - the main diagonal,
>0 - a diagonal from the upper half,
<0 - a diagonal from the lower half) Read more
source§fn diag_mut(&mut self, d: i32) -> Result<BoxedRefMut<'_, UMat>>
fn diag_mut(&mut self, d: i32) -> Result<BoxedRefMut<'_, UMat>>
… for the specified diagonal
(d=0 - the main diagonal,
>0 - a diagonal from the upper half,
<0 - a diagonal from the lower half) Read more
source§fn set_to(
&mut self,
value: &impl ToInputArray,
mask: &impl ToInputArray,
) -> Result<UMat>
fn set_to( &mut self, value: &impl ToInputArray, mask: &impl ToInputArray, ) -> Result<UMat>
sets some of the matrix elements to s, according to the mask Read more
source§fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<UMat>
fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<UMat>
sets some of the matrix elements to s, according to the mask Read more
source§fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, UMat>>
fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, UMat>>
creates alternative matrix header for the same data, with different Read more
source§fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, UMat>>
fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, UMat>>
creates alternative matrix header for the same data, with different Read more
fn reshape_nd_mut( &mut self, cn: i32, newsz: &[i32], ) -> Result<BoxedRefMut<'_, UMat>>
source§unsafe fn create_rows_cols(
&mut self,
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags,
) -> Result<()>
unsafe fn create_rows_cols( &mut self, rows: i32, cols: i32, typ: i32, usage_flags: UMatUsageFlags, ) -> Result<()>
allocates new matrix data unless the matrix already has specified size and type. Read more
source§fn create_rows_cols_def(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>
fn create_rows_cols_def(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>
allocates new matrix data unless the matrix already has specified size and type. Read more
source§unsafe fn create_size(
&mut self,
size: Size,
typ: i32,
usage_flags: UMatUsageFlags,
) -> Result<()>
unsafe fn create_size( &mut self, size: Size, typ: i32, usage_flags: UMatUsageFlags, ) -> Result<()>
C++ default parameters Read more
source§unsafe fn create_nd(
&mut self,
sizes: &[i32],
typ: i32,
usage_flags: UMatUsageFlags,
) -> Result<()>
unsafe fn create_nd( &mut self, sizes: &[i32], typ: i32, usage_flags: UMatUsageFlags, ) -> Result<()>
C++ default parameters Read more
source§unsafe fn create_nd_vec(
&mut self,
sizes: &Vector<i32>,
typ: i32,
usage_flags: UMatUsageFlags,
) -> Result<()>
unsafe fn create_nd_vec( &mut self, sizes: &Vector<i32>, typ: i32, usage_flags: UMatUsageFlags, ) -> Result<()>
C++ default parameters Read more
source§unsafe fn addref(&mut self) -> Result<()>
unsafe fn addref(&mut self) -> Result<()>
increases the reference counter; use with care to avoid memleaks
source§fn deallocate(&mut self) -> Result<()>
fn deallocate(&mut self) -> Result<()>
deallocates the matrix data
source§fn adjust_roi(
&mut self,
dtop: i32,
dbottom: i32,
dleft: i32,
dright: i32,
) -> Result<UMat>
fn adjust_roi( &mut self, dtop: i32, dbottom: i32, dleft: i32, dright: i32, ) -> Result<UMat>
moves/resizes the current matrix ROI inside the parent matrix.
source§fn rowscols_mut(
&mut self,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRefMut<'_, UMat>>
fn rowscols_mut( &mut self, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRefMut<'_, UMat>>
extracts a rectangular sub-matrix
fn roi_mut(&mut self, roi: Rect) -> Result<BoxedRefMut<'_, UMat>>
fn ranges_mut( &mut self, ranges: &Vector<Range>, ) -> Result<BoxedRefMut<'_, UMat>>
fn set_1(&mut self, m: UMat) -> Result<()>
source§fn update_continuity_flag(&mut self) -> Result<()>
fn update_continuity_flag(&mut self) -> Result<()>
internal use method: updates the continuity flag
source§impl UMatTraitConst for BoxedRefMut<'_, UMat>
impl UMatTraitConst for BoxedRefMut<'_, UMat>
fn as_raw_UMat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn rows(&self) -> i32
fn rows(&self) -> i32
number of rows in the matrix; -1 when the matrix has more than 2 dimensions
source§fn cols(&self) -> i32
fn cols(&self) -> i32
number of columns in the matrix; -1 when the matrix has more than 2 dimensions
source§fn usage_flags(&self) -> UMatUsageFlags
fn usage_flags(&self) -> UMatUsageFlags
usage flags for allocator; recommend do not set directly, instead set during construct/create/getUMat
source§fn mat_step(&self) -> MatStep
fn mat_step(&self) -> MatStep
number of bytes each matrix element/row/plane/dimension occupies
fn get_mat(&self, flags: AccessFlag) -> Result<Mat>
source§fn row(&self, y: i32) -> Result<BoxedRef<'_, UMat>>
fn row(&self, y: i32) -> Result<BoxedRef<'_, UMat>>
returns a new matrix header for the specified row
source§fn col(&self, x: i32) -> Result<BoxedRef<'_, UMat>>
fn col(&self, x: i32) -> Result<BoxedRef<'_, UMat>>
returns a new matrix header for the specified column
source§fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, UMat>>
fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, UMat>>
… for the specified row span
fn row_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, UMat>>
source§fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, UMat>>
fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, UMat>>
… for the specified column span
fn col_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, UMat>>
source§fn diag(&self, d: i32) -> Result<BoxedRef<'_, UMat>>
fn diag(&self, d: i32) -> Result<BoxedRef<'_, UMat>>
… for the specified diagonal
(d=0 - the main diagonal,
>0 - a diagonal from the upper half,
<0 - a diagonal from the lower half) Read more
source§fn diag_def(&self) -> Result<BoxedRef<'_, UMat>>
fn diag_def(&self) -> Result<BoxedRef<'_, UMat>>
… for the specified diagonal
(d=0 - the main diagonal,
>0 - a diagonal from the upper half,
<0 - a diagonal from the lower half) Read more
source§fn copy_to_masked(
&self,
m: &mut impl ToOutputArray,
mask: &impl ToInputArray,
) -> Result<()>
fn copy_to_masked( &self, m: &mut impl ToOutputArray, mask: &impl ToInputArray, ) -> Result<()>
copies those matrix elements to “m” that are marked with non-zero mask elements.
source§fn convert_to(
&self,
m: &mut impl ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64,
) -> Result<()>
fn convert_to( &self, m: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64, ) -> Result<()>
converts matrix to another datatype with optional scaling. See cvConvertScale. Read more
source§fn convert_to_def(&self, m: &mut impl ToOutputArray, rtype: i32) -> Result<()>
fn convert_to_def(&self, m: &mut impl ToOutputArray, rtype: i32) -> Result<()>
converts matrix to another datatype with optional scaling. See cvConvertScale. Read more
source§fn assign_to(&self, m: &mut impl UMatTrait, typ: i32) -> Result<()>
fn assign_to(&self, m: &mut impl UMatTrait, typ: i32) -> Result<()>
C++ default parameters Read more
source§fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, UMat>>
fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, UMat>>
creates alternative matrix header for the same data, with different Read more
source§fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, UMat>>
fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, UMat>>
creates alternative matrix header for the same data, with different Read more
fn reshape_nd(&self, cn: i32, newsz: &[i32]) -> Result<BoxedRef<'_, UMat>>
source§fn inv(&self, method: i32) -> Result<UMat>
fn inv(&self, method: i32) -> Result<UMat>
matrix inversion by means of matrix expressions Read more
source§fn mul(&self, m: &impl ToInputArray, scale: f64) -> Result<UMat>
fn mul(&self, m: &impl ToInputArray, scale: f64) -> Result<UMat>
per-element matrix multiplication by means of matrix expressions Read more
source§fn mul_def(&self, m: &impl ToInputArray) -> Result<UMat>
fn mul_def(&self, m: &impl ToInputArray) -> Result<UMat>
per-element matrix multiplication by means of matrix expressions Read more
source§fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>
locates matrix header within a parent matrix. See below
source§fn rowscols(
&self,
row_range: impl RangeTrait,
col_range: impl RangeTrait,
) -> Result<BoxedRef<'_, UMat>>
fn rowscols( &self, row_range: impl RangeTrait, col_range: impl RangeTrait, ) -> Result<BoxedRef<'_, UMat>>
extracts a rectangular sub-matrix
fn roi(&self, roi: Rect) -> Result<BoxedRef<'_, UMat>>
fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, UMat>>
source§fn is_continuous(&self) -> bool
fn is_continuous(&self) -> bool
returns true iff the matrix data is continuous
source§fn is_submatrix(&self) -> bool
fn is_submatrix(&self) -> bool
returns true if the matrix is a submatrix of another matrix
source§fn elem_size1(&self) -> size_t
fn elem_size1(&self) -> size_t
returns the size of element channel in bytes.
source§fn check_vector(
&self,
elem_channels: i32,
depth: i32,
require_continuous: bool,
) -> Result<i32>
fn check_vector( &self, elem_channels: i32, depth: i32, require_continuous: bool, ) -> Result<i32>
returns N if the matrix is 1-channel (N x ptdim) or ptdim-channel (1 x N) or (N x 1); negative number otherwise Read more
source§fn check_vector_def(&self, elem_channels: i32) -> Result<i32>
fn check_vector_def(&self, elem_channels: i32) -> Result<i32>
returns N if the matrix is 1-channel (N x ptdim) or ptdim-channel (1 x N) or (N x 1); negative number otherwise Read more
source§fn handle(&self, access_flags: AccessFlag) -> Result<*mut c_void>
fn handle(&self, access_flags: AccessFlag) -> Result<*mut c_void>
! Returns the OpenCL buffer handle on which UMat operates on.
The UMat instance should be kept alive during the use of the handle to prevent the buffer to be
returned to the OpenCV buffer pool.
fn ndoffset(&self, ofs: &mut size_t) -> Result<()>
fn size(&self) -> Result<Size>
source§impl VideoCaptureTrait for BoxedRefMut<'_, VideoCapture>
impl VideoCaptureTrait for BoxedRefMut<'_, VideoCapture>
fn as_raw_mut_VideoCapture( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn open_file(&mut self, filename: &str, api_preference: i32) -> Result<bool>
fn open_file(&mut self, filename: &str, api_preference: i32) -> Result<bool>
Opens a video file or a capturing device or an IP video stream for video capturing. Read more
source§fn open_file_def(&mut self, filename: &str) -> Result<bool>
fn open_file_def(&mut self, filename: &str) -> Result<bool>
Opens a video file or a capturing device or an IP video stream for video capturing. Read more
source§fn open_file_with_params(
&mut self,
filename: &str,
api_preference: i32,
params: &Vector<i32>,
) -> Result<bool>
fn open_file_with_params( &mut self, filename: &str, api_preference: i32, params: &Vector<i32>, ) -> Result<bool>
Opens a camera for video capturing Read more
source§fn open(&mut self, index: i32, api_preference: i32) -> Result<bool>
fn open(&mut self, index: i32, api_preference: i32) -> Result<bool>
Opens a camera for video capturing Read more
source§fn open_def(&mut self, index: i32) -> Result<bool>
fn open_def(&mut self, index: i32) -> Result<bool>
Opens a camera for video capturing Read more
source§fn open_with_params(
&mut self,
index: i32,
api_preference: i32,
params: &Vector<i32>,
) -> Result<bool>
fn open_with_params( &mut self, index: i32, api_preference: i32, params: &Vector<i32>, ) -> Result<bool>
Returns true if video capturing has been initialized already. Read more
source§fn grab(&mut self) -> Result<bool>
fn grab(&mut self) -> Result<bool>
Grabs the next frame from video file or capturing device. Read more
source§fn retrieve(
&mut self,
image: &mut impl ToOutputArray,
flag: i32,
) -> Result<bool>
fn retrieve( &mut self, image: &mut impl ToOutputArray, flag: i32, ) -> Result<bool>
Decodes and returns the grabbed video frame. Read more
source§fn retrieve_def(&mut self, image: &mut impl ToOutputArray) -> Result<bool>
fn retrieve_def(&mut self, image: &mut impl ToOutputArray) -> Result<bool>
Decodes and returns the grabbed video frame. Read more
source§fn read(&mut self, image: &mut impl ToOutputArray) -> Result<bool>
fn read(&mut self, image: &mut impl ToOutputArray) -> Result<bool>
Grabs, decodes and returns the next video frame. Read more
source§fn set(&mut self, prop_id: i32, value: f64) -> Result<bool>
fn set(&mut self, prop_id: i32, value: f64) -> Result<bool>
Sets a property in the VideoCapture. Read more
source§fn set_exception_mode(&mut self, enable: bool) -> Result<()>
fn set_exception_mode(&mut self, enable: bool) -> Result<()>
Switches exceptions mode Read more
source§fn get_exception_mode(&mut self) -> Result<bool>
fn get_exception_mode(&mut self) -> Result<bool>
query if exception mode is active
source§impl VideoCaptureTraitConst for BoxedRefMut<'_, VideoCapture>
impl VideoCaptureTraitConst for BoxedRefMut<'_, VideoCapture>
fn as_raw_VideoCapture(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§fn is_opened(&self) -> Result<bool>
fn is_opened(&self) -> Result<bool>
Returns true if video capturing has been initialized already. Read more
source§impl VideoWriterTrait for BoxedRefMut<'_, VideoWriter>
impl VideoWriterTrait for BoxedRefMut<'_, VideoWriter>
fn as_raw_mut_VideoWriter( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§fn open(
&mut self,
filename: &str,
fourcc: i32,
fps: f64,
frame_size: Size,
is_color: bool,
) -> Result<bool>
fn open( &mut self, filename: &str, fourcc: i32, fps: f64, frame_size: Size, is_color: bool, ) -> Result<bool>
Initializes or reinitializes video writer. Read more
source§fn open_def(
&mut self,
filename: &str,
fourcc: i32,
fps: f64,
frame_size: Size,
) -> Result<bool>
fn open_def( &mut self, filename: &str, fourcc: i32, fps: f64, frame_size: Size, ) -> Result<bool>
Initializes or reinitializes video writer. Read more
source§fn open_with_backend(
&mut self,
filename: &str,
api_preference: i32,
fourcc: i32,
fps: f64,
frame_size: Size,
is_color: bool,
) -> Result<bool>
fn open_with_backend( &mut self, filename: &str, api_preference: i32, fourcc: i32, fps: f64, frame_size: Size, is_color: bool, ) -> Result<bool>
Initializes or reinitializes video writer. Read more
source§fn open_with_backend_def(
&mut self,
filename: &str,
api_preference: i32,
fourcc: i32,
fps: f64,
frame_size: Size,
) -> Result<bool>
fn open_with_backend_def( &mut self, filename: &str, api_preference: i32, fourcc: i32, fps: f64, frame_size: Size, ) -> Result<bool>
@overload Read more
source§fn open_1(
&mut self,
filename: &str,
fourcc: i32,
fps: f64,
frame_size: Size,
params: &Vector<i32>,
) -> Result<bool>
fn open_1( &mut self, filename: &str, fourcc: i32, fps: f64, frame_size: Size, params: &Vector<i32>, ) -> Result<bool>
Initializes or reinitializes video writer. Read more
source§fn open_2(
&mut self,
filename: &str,
api_preference: i32,
fourcc: i32,
fps: f64,
frame_size: Size,
params: &Vector<i32>,
) -> Result<bool>
fn open_2( &mut self, filename: &str, api_preference: i32, fourcc: i32, fps: f64, frame_size: Size, params: &Vector<i32>, ) -> Result<bool>
Initializes or reinitializes video writer. Read more
source§impl VideoWriterTraitConst for BoxedRefMut<'_, VideoWriter>
impl VideoWriterTraitConst for BoxedRefMut<'_, VideoWriter>
source§impl WriteStructContextTrait for BoxedRefMut<'_, WriteStructContext>
impl WriteStructContextTrait for BoxedRefMut<'_, WriteStructContext>
fn as_raw_mut_WriteStructContext( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl WriteStructContextTraitConst for BoxedRefMut<'_, WriteStructContext>
impl WriteStructContextTraitConst for BoxedRefMut<'_, WriteStructContext>
fn as_raw_WriteStructContext( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl _InputArrayTrait for BoxedRefMut<'_, _InputArray>
impl _InputArrayTrait for BoxedRefMut<'_, _InputArray>
fn as_raw_mut__InputArray( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl _InputArrayTrait for BoxedRefMut<'_, _InputOutputArray>
impl _InputArrayTrait for BoxedRefMut<'_, _InputOutputArray>
fn as_raw_mut__InputArray( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl _InputArrayTrait for BoxedRefMut<'_, _OutputArray>
impl _InputArrayTrait for BoxedRefMut<'_, _OutputArray>
fn as_raw_mut__InputArray( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl _InputArrayTraitConst for BoxedRefMut<'_, _InputArray>
impl _InputArrayTraitConst for BoxedRefMut<'_, _InputArray>
fn as_raw__InputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_mat_vector(&self, mv: &mut Vector<Mat>) -> Result<()>
fn get_umat_vector(&self, umv: &mut Vector<UMat>) -> Result<()>
fn get_gpu_mat_vector(&self, gpumv: &mut Vector<GpuMat>) -> Result<()>
fn get_gpu_mat(&self) -> Result<GpuMat>
fn get_o_gl_buffer(&self) -> Result<Buffer>
fn get_flags(&self) -> Result<i32>
fn get_obj(&self) -> Result<*mut c_void>
fn get_sz(&self) -> Result<Size>
fn kind(&self) -> Result<_InputArray_KindFlag>
fn same_size(&self, arr: &impl ToInputArray) -> Result<bool>
fn empty(&self) -> Result<bool>
fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>
fn copy_to_masked( &self, arr: &mut impl ToOutputArray, mask: &impl ToInputArray, ) -> Result<()>
fn is_mat(&self) -> Result<bool>
fn is_umat(&self) -> Result<bool>
fn is_mat_vector(&self) -> Result<bool>
fn is_umat_vector(&self) -> Result<bool>
fn is_matx(&self) -> Result<bool>
fn is_vector(&self) -> Result<bool>
fn is_gpu_mat(&self) -> Result<bool>
fn is_gpu_mat_vector(&self) -> Result<bool>
source§impl _InputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>
impl _InputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>
fn as_raw__InputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_mat_vector(&self, mv: &mut Vector<Mat>) -> Result<()>
fn get_umat_vector(&self, umv: &mut Vector<UMat>) -> Result<()>
fn get_gpu_mat_vector(&self, gpumv: &mut Vector<GpuMat>) -> Result<()>
fn get_gpu_mat(&self) -> Result<GpuMat>
fn get_o_gl_buffer(&self) -> Result<Buffer>
fn get_flags(&self) -> Result<i32>
fn get_obj(&self) -> Result<*mut c_void>
fn get_sz(&self) -> Result<Size>
fn kind(&self) -> Result<_InputArray_KindFlag>
fn same_size(&self, arr: &impl ToInputArray) -> Result<bool>
fn empty(&self) -> Result<bool>
fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>
fn copy_to_masked( &self, arr: &mut impl ToOutputArray, mask: &impl ToInputArray, ) -> Result<()>
fn is_mat(&self) -> Result<bool>
fn is_umat(&self) -> Result<bool>
fn is_mat_vector(&self) -> Result<bool>
fn is_umat_vector(&self) -> Result<bool>
fn is_matx(&self) -> Result<bool>
fn is_vector(&self) -> Result<bool>
fn is_gpu_mat(&self) -> Result<bool>
fn is_gpu_mat_vector(&self) -> Result<bool>
source§impl _InputArrayTraitConst for BoxedRefMut<'_, _OutputArray>
impl _InputArrayTraitConst for BoxedRefMut<'_, _OutputArray>
fn as_raw__InputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn get_mat_vector(&self, mv: &mut Vector<Mat>) -> Result<()>
fn get_umat_vector(&self, umv: &mut Vector<UMat>) -> Result<()>
fn get_gpu_mat_vector(&self, gpumv: &mut Vector<GpuMat>) -> Result<()>
fn get_gpu_mat(&self) -> Result<GpuMat>
fn get_o_gl_buffer(&self) -> Result<Buffer>
fn get_flags(&self) -> Result<i32>
fn get_obj(&self) -> Result<*mut c_void>
fn get_sz(&self) -> Result<Size>
fn kind(&self) -> Result<_InputArray_KindFlag>
fn same_size(&self, arr: &impl ToInputArray) -> Result<bool>
fn empty(&self) -> Result<bool>
fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>
fn copy_to_masked( &self, arr: &mut impl ToOutputArray, mask: &impl ToInputArray, ) -> Result<()>
fn is_mat(&self) -> Result<bool>
fn is_umat(&self) -> Result<bool>
fn is_mat_vector(&self) -> Result<bool>
fn is_umat_vector(&self) -> Result<bool>
fn is_matx(&self) -> Result<bool>
fn is_vector(&self) -> Result<bool>
fn is_gpu_mat(&self) -> Result<bool>
fn is_gpu_mat_vector(&self) -> Result<bool>
source§impl _InputOutputArrayTrait for BoxedRefMut<'_, _InputOutputArray>
impl _InputOutputArrayTrait for BoxedRefMut<'_, _InputOutputArray>
fn as_raw_mut__InputOutputArray( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl _InputOutputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>
impl _InputOutputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>
fn as_raw__InputOutputArray( &self, ) -> <Self as OpenCVTypeExternContainer>::ExternSend
source§impl _OutputArrayTrait for BoxedRefMut<'_, _InputOutputArray>
impl _OutputArrayTrait for BoxedRefMut<'_, _InputOutputArray>
fn as_raw_mut__OutputArray( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl _OutputArrayTrait for BoxedRefMut<'_, _OutputArray>
impl _OutputArrayTrait for BoxedRefMut<'_, _OutputArray>
fn as_raw_mut__OutputArray( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl _OutputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>
impl _OutputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>
fn as_raw__OutputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn fixed_size(&self) -> Result<bool>
fn fixed_type(&self) -> Result<bool>
fn needed(&self) -> Result<bool>
fn get_gpu_mat_ref(&self) -> Result<GpuMat>
fn get_gpu_mat_vec_ref(&self) -> Result<Vector<GpuMat>>
fn get_o_gl_buffer_ref(&self) -> Result<Buffer>
fn get_host_mem_ref(&self) -> Result<HostMem>
source§fn create_size(
&self,
sz: Size,
typ: i32,
i: i32,
allow_transposed: bool,
fixed_depth_mask: _OutputArray_DepthMask,
) -> Result<()>
fn create_size( &self, sz: Size, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask, ) -> Result<()>
C++ default parameters Read more
source§fn create(
&self,
rows: i32,
cols: i32,
typ: i32,
i: i32,
allow_transposed: bool,
fixed_depth_mask: _OutputArray_DepthMask,
) -> Result<()>
fn create( &self, rows: i32, cols: i32, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask, ) -> Result<()>
C++ default parameters Read more
source§fn create_nd(
&self,
size: &[i32],
typ: i32,
i: i32,
allow_transposed: bool,
fixed_depth_mask: _OutputArray_DepthMask,
) -> Result<()>
fn create_nd( &self, size: &[i32], typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask, ) -> Result<()>
C++ default parameters Read more
unsafe fn create_same_size( &self, arr: &impl ToInputArray, mtype: i32, ) -> Result<()>
fn release(&self) -> Result<()>
fn clear(&self) -> Result<()>
source§fn set_to(
&self,
value: &impl ToInputArray,
mask: &impl ToInputArray,
) -> Result<()>
fn set_to( &self, value: &impl ToInputArray, mask: &impl ToInputArray, ) -> Result<()>
C++ default parameters Read more
source§fn set_to_def(&self, value: &impl ToInputArray) -> Result<()>
fn set_to_def(&self, value: &impl ToInputArray) -> Result<()>
Note Read more
fn assign_umat(&self, u: &impl UMatTraitConst) -> Result<()>
fn assign_mat(&self, m: &impl MatTraitConst) -> Result<()>
fn assign_umat_vec(&self, v: &Vector<UMat>) -> Result<()>
fn assign_mat_vec(&self, v: &Vector<Mat>) -> Result<()>
fn move_umat(&self, u: &mut impl UMatTrait) -> Result<()>
fn move_mat(&self, m: &mut impl MatTrait) -> Result<()>
source§impl _OutputArrayTraitConst for BoxedRefMut<'_, _OutputArray>
impl _OutputArrayTraitConst for BoxedRefMut<'_, _OutputArray>
fn as_raw__OutputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
fn fixed_size(&self) -> Result<bool>
fn fixed_type(&self) -> Result<bool>
fn needed(&self) -> Result<bool>
fn get_gpu_mat_ref(&self) -> Result<GpuMat>
fn get_gpu_mat_vec_ref(&self) -> Result<Vector<GpuMat>>
fn get_o_gl_buffer_ref(&self) -> Result<Buffer>
fn get_host_mem_ref(&self) -> Result<HostMem>
source§fn create_size(
&self,
sz: Size,
typ: i32,
i: i32,
allow_transposed: bool,
fixed_depth_mask: _OutputArray_DepthMask,
) -> Result<()>
fn create_size( &self, sz: Size, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask, ) -> Result<()>
C++ default parameters Read more
source§fn create(
&self,
rows: i32,
cols: i32,
typ: i32,
i: i32,
allow_transposed: bool,
fixed_depth_mask: _OutputArray_DepthMask,
) -> Result<()>
fn create( &self, rows: i32, cols: i32, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask, ) -> Result<()>
C++ default parameters Read more
source§fn create_nd(
&self,
size: &[i32],
typ: i32,
i: i32,
allow_transposed: bool,
fixed_depth_mask: _OutputArray_DepthMask,
) -> Result<()>
fn create_nd( &self, size: &[i32], typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask, ) -> Result<()>
C++ default parameters Read more
unsafe fn create_same_size( &self, arr: &impl ToInputArray, mtype: i32, ) -> Result<()>
fn release(&self) -> Result<()>
fn clear(&self) -> Result<()>
source§fn set_to(
&self,
value: &impl ToInputArray,
mask: &impl ToInputArray,
) -> Result<()>
fn set_to( &self, value: &impl ToInputArray, mask: &impl ToInputArray, ) -> Result<()>
C++ default parameters Read more
source§fn set_to_def(&self, value: &impl ToInputArray) -> Result<()>
fn set_to_def(&self, value: &impl ToInputArray) -> Result<()>
Note Read more
fn assign_umat(&self, u: &impl UMatTraitConst) -> Result<()>
fn assign_mat(&self, m: &impl MatTraitConst) -> Result<()>
fn assign_umat_vec(&self, v: &Vector<UMat>) -> Result<()>
fn assign_mat_vec(&self, v: &Vector<Mat>) -> Result<()>
fn move_umat(&self, u: &mut impl UMatTrait) -> Result<()>
fn move_mat(&self, m: &mut impl MatTrait) -> Result<()>
source§impl _RangeTrait for BoxedRefMut<'_, _Range>
impl _RangeTrait for BoxedRefMut<'_, _Range>
fn as_raw_mut__Range( &mut self, ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut
source§impl _RangeTraitConst for BoxedRefMut<'_, _Range>
impl _RangeTraitConst for BoxedRefMut<'_, _Range>
fn as_raw__Range(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend
Auto Trait Implementations§
impl<'r, T> Freeze for BoxedRefMut<'r, T>where
T: Freeze,
impl<'r, T> RefUnwindSafe for BoxedRefMut<'r, T>where
T: RefUnwindSafe,
impl<'r, T> Send for BoxedRefMut<'r, T>where
T: Send,
impl<'r, T> Sync for BoxedRefMut<'r, T>where
T: Sync,
impl<'r, T> Unpin for BoxedRefMut<'r, T>where
T: Unpin,
impl<'r, T> !UnwindSafe for BoxedRefMut<'r, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> MatConstIteratorTraitManual for Twhere
T: MatConstIteratorTrait,
impl<T> MatConstIteratorTraitManual for Twhere
T: MatConstIteratorTrait,
source§impl<T> MatTraitConstManual for Twhere
T: MatTraitConst + ?Sized,
impl<T> MatTraitConstManual for Twhere
T: MatTraitConst + ?Sized,
source§unsafe fn at_unchecked<T: DataType>(&self, i0: i32) -> Result<&T>
unsafe fn at_unchecked<T: DataType>(&self, i0: i32) -> Result<&T>
Like
Mat::at() but performs no bounds or type checks Read moresource§unsafe fn at_2d_unchecked<T: DataType>(&self, row: i32, col: i32) -> Result<&T>
unsafe fn at_2d_unchecked<T: DataType>(&self, row: i32, col: i32) -> Result<&T>
Like
Mat::at_2d() but performs no bounds or type checks Read moresource§unsafe fn at_pt_unchecked<T: DataType>(&self, pt: Point) -> Result<&T>
unsafe fn at_pt_unchecked<T: DataType>(&self, pt: Point) -> Result<&T>
Like
Mat::at_pt() but performs no bounds or type checks Read moresource§unsafe fn at_3d_unchecked<T: DataType>(
&self,
i0: i32,
i1: i32,
i2: i32,
) -> Result<&T>
unsafe fn at_3d_unchecked<T: DataType>( &self, i0: i32, i1: i32, i2: i32, ) -> Result<&T>
Like
Mat::at_3d() but performs no bounds or type checks Read moresource§unsafe fn at_nd_unchecked<T: DataType>(&self, idx: &[i32]) -> Result<&T>
unsafe fn at_nd_unchecked<T: DataType>(&self, idx: &[i32]) -> Result<&T>
Like
Mat::at_nd() but performs no bounds or type checks Read moresource§unsafe fn at_row_unchecked<T: DataType>(&self, row: i32) -> Result<&[T]>
unsafe fn at_row_unchecked<T: DataType>(&self, row: i32) -> Result<&[T]>
Like
Mat::at_row() but performs no bounds or type checks Read morefn is_allocated(&self) -> bool
source§fn data_bytes(&self) -> Result<&[u8]>
fn data_bytes(&self) -> Result<&[u8]>
Returns underlying data array as byte slice,
Mat must be continuousfn data_typed<T: DataType>(&self) -> Result<&[T]>
fn to_vec_2d<T: DataType>(&self) -> Result<Vec<Vec<T>>>
source§fn iter<T: DataType>(&self) -> Result<MatIter<'_, T>>where
Self: Sized,
fn iter<T: DataType>(&self) -> Result<MatIter<'_, T>>where
Self: Sized,
Returns an iterator over
Mat elements and their positionsfn try_into_typed<T: DataType>(self) -> Result<Mat_<T>>
source§impl<T> MatTraitManual for T
impl<T> MatTraitManual for T
source§unsafe fn at_unchecked_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>
unsafe fn at_unchecked_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>
Like
Mat::at_mut() but performs no bounds or type checks Read moresource§unsafe fn at_2d_unchecked_mut<T: DataType>(
&mut self,
row: i32,
col: i32,
) -> Result<&mut T>
unsafe fn at_2d_unchecked_mut<T: DataType>( &mut self, row: i32, col: i32, ) -> Result<&mut T>
Like
Mat::at_2d_mut() but performs no bounds or type checks Read moresource§unsafe fn at_pt_unchecked_mut<T: DataType>(
&mut self,
pt: Point,
) -> Result<&mut T>
unsafe fn at_pt_unchecked_mut<T: DataType>( &mut self, pt: Point, ) -> Result<&mut T>
Like
Mat::at_pt_mut() but performs no bounds or type checks Read moresource§unsafe fn at_3d_unchecked_mut<T: DataType>(
&mut self,
i0: i32,
i1: i32,
i2: i32,
) -> Result<&mut T>
unsafe fn at_3d_unchecked_mut<T: DataType>( &mut self, i0: i32, i1: i32, i2: i32, ) -> Result<&mut T>
Like
Mat::at_3d_mut() but performs no bounds or type checks Read moresource§unsafe fn at_nd_unchecked_mut<T: DataType>(
&mut self,
idx: &[i32],
) -> Result<&mut T>
unsafe fn at_nd_unchecked_mut<T: DataType>( &mut self, idx: &[i32], ) -> Result<&mut T>
Like
Mat::at_nd_mut() but performs no bounds or type checks Read moresource§fn at_row_mut<T: DataType>(&mut self, row: i32) -> Result<&mut [T]>
fn at_row_mut<T: DataType>(&mut self, row: i32) -> Result<&mut [T]>
Return a complete writeable row
source§unsafe fn at_row_unchecked_mut<T: DataType>(
&mut self,
row: i32,
) -> Result<&mut [T]>
unsafe fn at_row_unchecked_mut<T: DataType>( &mut self, row: i32, ) -> Result<&mut [T]>
Like
Mat::at_row_mut() but performs no bounds or type checks Read moresource§fn data_bytes_mut(&mut self) -> Result<&mut [u8]>
fn data_bytes_mut(&mut self) -> Result<&mut [u8]>
Returns underlying data array as mutable byte slice, Mat must be continuous.